Update CatalogController.php

bug fix
This commit is contained in:
la#0001 2022-03-13 16:47:56 +10:00 committed by GitHub
parent b61f230208
commit 07c365992c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@ class CatalogController extends Controller
abort(404);
}
if (!$user == $item->user && !$user->admin) {
if (!$user == $item->user || !$user->admin) {
abort(403);
}
@ -183,7 +183,7 @@ class CatalogController extends Controller
abort(404);
}
if (!$user == $item->user && !$user->admin) {
if (!$user == $item->user || !$user->admin) {
abort(403);
}