mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 00:02:15 +00:00
- added not found exception for Model
- cleared dev console - get share record refactored on backend
This commit is contained in:
@@ -30,7 +30,7 @@ class BrowseShareController extends Controller
|
||||
public function get_public_folders($id, Share $shared)
|
||||
{
|
||||
// Abort if folder is protected
|
||||
if ((int)$shared->is_protected) {
|
||||
if ($shared->is_protected) {
|
||||
abort(403, "Sorry, you don't have permission");
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ class BrowseShareController extends Controller
|
||||
public function search_public(Request $request, Share $shared)
|
||||
{
|
||||
// Abort if folder is protected
|
||||
if ((int)$shared->is_protected) {
|
||||
if ($shared->is_protected) {
|
||||
abort(403, "Sorry, you don't have permission");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user