mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-18 18:46:24 +01:00
DMAPI Update (#17935)
* DMAPI Update * Fix * More changes * InitTgs * . * css * urg * fix that * some linux fixes * . * . * . * update * . * pref fixing * . * those are already sent * . * . * . * fully off * fix that * New classes & Format * make this nicer * CSS Edits * . * eh use switch * . * Update client procs.dm * Hard restart counter * Improved Staffwho style --------- Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
@@ -455,7 +455,13 @@ ADMIN_VERB(edit_admin_permissions, R_PERMISSIONS, "Permissions Panel", "Edit adm
|
||||
|
||||
#undef RANK_DONE
|
||||
|
||||
/// Changes, for this round only, the flags a particular admin gets to use
|
||||
/datum/admins/proc/change_admin_flags(admin_ckey, admin_key, datum/admins/admin_holder)
|
||||
if(!check_rights(R_PERMISSIONS))
|
||||
return
|
||||
if(IsAdminAdvancedProcCall())
|
||||
to_chat(usr, span_adminprefix("Rank Modification blocked: Advanced ProcCall detected."), confidential = TRUE)
|
||||
return
|
||||
var/new_flags = input_bitfield(
|
||||
usr,
|
||||
"Admin rights<br>This will affect only the current admin [admin_key]",
|
||||
@@ -465,6 +471,8 @@ ADMIN_VERB(edit_admin_permissions, R_PERMISSIONS, "Permissions Panel", "Edit adm
|
||||
590,
|
||||
allowed_edit_field = usr.client.holder.can_edit_rights_flags(),
|
||||
)
|
||||
if(isnull(new_flags))
|
||||
return
|
||||
|
||||
admin_holder.disassociate()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user