mirror of
https://github.com/Deathgarden-Rebirth/Deathgarden_Rebirth-Rewrite.git
synced 2026-09-09 03:35:14 -05:00
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:
@@ -10,13 +10,13 @@
|
||||
|
||||
class ChatMessageController extends AdminToolController
|
||||
{
|
||||
protected static string $name = 'Chat Messages';
|
||||
protected static string $name = 'Chat Profanity Alarm';
|
||||
|
||||
protected static string $description = 'See list of chat messages that triggered the Profanity filter.';
|
||||
protected static string $description = 'View Triggered Chat Messages';
|
||||
|
||||
protected static string $iconComponent = 'icons.chat';
|
||||
|
||||
protected static Permissions $neededPermission = Permissions::VIEW_USERS;
|
||||
protected static Permissions $neededPermission = Permissions::CHAT_REPORTS;
|
||||
|
||||
public function index()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user