mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] Required admin privileges restrictions (#8802)
Co-authored-by: Novacat <35587478+Novacat@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
@@ -73,6 +73,8 @@ GLOBAL_DATUM_INIT(ahelp_tickets, /datum/admin_help_tickets, new)
|
|||||||
|
|
||||||
//opens the ticket listings for one of the 3 states
|
//opens the ticket listings for one of the 3 states
|
||||||
/datum/admin_help_tickets/proc/BrowseTickets(state)
|
/datum/admin_help_tickets/proc/BrowseTickets(state)
|
||||||
|
if(!check_rights(R_ADMIN|R_SERVER)) //Prevents non-staff from opening the list of ahelp tickets
|
||||||
|
return
|
||||||
var/list/l2b
|
var/list/l2b
|
||||||
var/title
|
var/title
|
||||||
switch(state)
|
switch(state)
|
||||||
|
|||||||
@@ -169,7 +169,8 @@
|
|||||||
// Admins with RLOOC displayed who weren't already in
|
// Admins with RLOOC displayed who weren't already in
|
||||||
for(var/client/admin in GLOB.admins)
|
for(var/client/admin in GLOB.admins)
|
||||||
if(!(admin in receivers) && admin.is_preference_enabled(/datum/client_preference/holder/show_rlooc))
|
if(!(admin in receivers) && admin.is_preference_enabled(/datum/client_preference/holder/show_rlooc))
|
||||||
r_receivers |= admin
|
if(check_rights(R_ADMIN|R_SERVER, FALSE, admin)) //Stop rLOOC showing for retired staff //CHOMPEdit, admins should see LOOC
|
||||||
|
r_receivers |= admin
|
||||||
|
|
||||||
msg = GLOB.is_valid_url.Replace(msg,"<span class='linkify'>$1</span>")
|
msg = GLOB.is_valid_url.Replace(msg,"<span class='linkify'>$1</span>")
|
||||||
|
|
||||||
|
|||||||
@@ -750,11 +750,11 @@
|
|||||||
stat(null)
|
stat(null)
|
||||||
for(var/datum/controller/subsystem/SS in Master.subsystems)
|
for(var/datum/controller/subsystem/SS in Master.subsystems)
|
||||||
SS.stat_entry()
|
SS.stat_entry()
|
||||||
|
/* CHOMPedit - Ticket System
|
||||||
// CHOMPedit - Ticket System
|
if(statpanel("Tickets"))
|
||||||
//if(statpanel("Tickets"))
|
if(check_rights(R_ADMIN|R_SERVER,FALSE)) //Prevents non-staff from opening the list of ahelp tickets
|
||||||
//GLOB.ahelp_tickets.stat_entry()
|
GLOB.ahelp_tickets.stat_entry()
|
||||||
|
*/
|
||||||
|
|
||||||
if(length(GLOB.sdql2_queries))
|
if(length(GLOB.sdql2_queries))
|
||||||
if(statpanel("SDQL2"))
|
if(statpanel("SDQL2"))
|
||||||
|
|||||||
Reference in New Issue
Block a user