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:
@@ -60,7 +60,7 @@ class FileSharedAccessController extends Controller
|
||||
public function get_file_public($filename, Share $shared)
|
||||
{
|
||||
// Abort if shared is protected
|
||||
if ((int)$shared->is_protected) {
|
||||
if ($shared->is_protected) {
|
||||
abort(403, "Sorry, you don't have permission");
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ class FileSharedAccessController extends Controller
|
||||
public function get_thumbnail_public($filename, Share $shared)
|
||||
{
|
||||
// Abort if thumbnail 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