clear SharedWithMe.vue view

This commit is contained in:
Čarodej
2021-10-22 09:50:27 +02:00
parent 3fee035e9e
commit cea881ce38
12 changed files with 113 additions and 25 deletions
@@ -23,7 +23,7 @@ class GetFileController extends Controller
->where('basename', $filename)
->firstOrFail();
if (! Gate::any(['can-edit', 'can-visit'], [$file, null])) {
if (! Gate::any(['can-edit', 'can-view'], [$file, null])) {
abort(403, 'Access Denied');
}
@@ -24,7 +24,7 @@ class GetThumbnailController extends Controller
->where('thumbnail', $filename)
->firstOrFail();
if (! Gate::any(['can-edit', 'can-visit'], [$file, null])) {
if (! Gate::any(['can-edit', 'can-view'], [$file, null])) {
abort(403, 'Access Denied');
}
@@ -21,7 +21,7 @@ class VisitorShowFileController
->whereId($shared->item_id)
->firstOrFail();
Gate::authorize('can-visit', [$file, $shared]);
Gate::authorize('can-view', [$file, $shared]);
// Set access urls
$file->setPublicUrl($shared->token);