use permission torrent-approval

This commit is contained in:
xiaomlove
2022-08-20 21:07:29 +08:00
parent b79762686a
commit 99ce5304d0
6 changed files with 16 additions and 28 deletions
-7
View File
@@ -57,11 +57,4 @@ class Controller extends BaseController
return Str::slug("$title.$action", '.');
}
protected function checkPermission($permission)
{
if (Auth::user()->class < Setting::get($permission)) {
throw new InsufficientPermissionException();
}
}
}