Created a middleware for checking permissions in admin controllers, so I cannot forget to add permission checks.

Changed some descriptions of the admin tools for Miraak.

Aded some more Permissions and added a moderator role.
This commit is contained in:
Vari
2024-08-11 16:34:59 +02:00
parent a07e7710d0
commit a0e2e321cc
15 changed files with 107 additions and 31 deletions

View File

@@ -8,9 +8,9 @@
class FileManagerController extends AdminToolController
{
protected static string $name = 'File Manager';
protected static string $name = 'Pak Manager';
protected static string $description = 'Add and edit game files the launcher installs.';
protected static string $description = 'Deploy Pak Updates for the Launcher';
protected static string $iconComponent = 'icons.file-manager';
protected static Permissions $neededPermission = Permissions::FILE_UPLOAD;