- added not found exception for Model

- cleared dev console
- get share record refactored on backend
This commit is contained in:
Peter Papp
2021-03-17 12:24:15 +01:00
parent 1d52186f17
commit fc18280842
16 changed files with 211 additions and 353 deletions

View File

@@ -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");
}