Add R_VIEWLOGS permission. (#29613)

This commit is contained in:
warriorstar-orion
2025-06-14 21:05:16 +00:00
committed by GitHub
parent 99fd4918d7
commit 64bf2b0fda
3 changed files with 10 additions and 3 deletions
+2 -2
View File
@@ -4,7 +4,7 @@
set desc = "View/retrieve logfiles."
set category = "Admin"
if(!check_rights(R_ADMIN))
if(!check_rights(R_ADMIN|R_VIEWLOGS))
return
access_file_by_browsing_path(usr, "data/logs/")
@@ -15,7 +15,7 @@
set desc = "View/retrieve logfiles for a given round."
set category = "Admin"
if(!check_rights(R_ADMIN))
if(!check_rights(R_ADMIN|R_VIEWLOGS))
return
var/round_id = input(usr, "Enter a round ID.", "Enter Round ID", "[GLOB.round_id]") as null|text