Locks some really gamebreaking verbs to Maints (#17633)

This commit is contained in:
AffectedArc07
2022-04-22 08:27:54 +09:00
committed by GitHub
parent 135fb1802f
commit 469168517a
15 changed files with 27 additions and 57 deletions
+1 -1
View File
@@ -543,7 +543,7 @@ GLOBAL_PROTECT(VVmaint_only)
if(prompt != "Continue")
return FALSE
if(param_var_name in GLOB.VVmaint_only)
if(!is_maintainer(usr))
if(!check_rights(R_MAINTAINER))
alert(usr, "Editing this variable is restricted to Maintainers only.", "Error", "Ok")
return FALSE