mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-14 19:51:59 +00:00
Fix adminban limit permission check (#61172)
this is likely what was intended
This commit is contained in:
committed by
GitHub
parent
e09dc8ba24
commit
b0e57a8776
@@ -504,7 +504,7 @@
|
||||
if(query_check_adminban_count.NextRow())
|
||||
var/adminban_count = text2num(query_check_adminban_count.item[1])
|
||||
var/max_adminbans = MAX_ADMINBANS_PER_ADMIN
|
||||
if(R_EVERYTHING && !(R_EVERYTHING & rank.can_edit_rights)) //edit rights are a more effective way to check hierarchical rank since many non-headmins have R_PERMISSIONS now
|
||||
if(check_rights(R_PERMISSIONS, show_msg = FALSE) && (rank.can_edit_rights & R_EVERYTHING) == R_EVERYTHING) //edit rights are a more effective way to check hierarchical rank since many non-headmins have R_PERMISSIONS now
|
||||
max_adminbans = MAX_ADMINBANS_PER_HEADMIN
|
||||
if(adminban_count >= max_adminbans)
|
||||
to_chat(usr, span_danger("You've already logged [max_adminbans] admin ban(s) or more. Do not abuse this function!"), confidential = TRUE)
|
||||
|
||||
Reference in New Issue
Block a user