Merge pull request #7317 from ShadowLarkens/tgui

TGUI-V3
This commit is contained in:
Atermonera
2020-07-30 14:11:32 -07:00
committed by GitHub
187 changed files with 22195 additions and 79 deletions
+8
View File
@@ -119,3 +119,11 @@ NOTE: It checks usr by default. Supply the "user" argument if you wish to check
holder.disassociate()
//qdel(holder)
return 1
//This proc checks whether subject has at least ONE of the rights specified in rights_required.
/proc/check_rights_for(client/subject, rights_required)
if(subject && subject.holder)
if(rights_required && !(rights_required & subject.holder.rights))
return 0
return 1
return 0