Update admin.py
This commit is contained in:
parent
f58a46260c
commit
4a04a3a76d
1 changed files with 1 additions and 1 deletions
|
|
@ -481,7 +481,7 @@ class CmdPerm(COMMAND_DEFAULT_CLASS):
|
||||||
locktype = "edit" if accountmode else "control"
|
locktype = "edit" if accountmode else "control"
|
||||||
if not obj.access(caller, locktype):
|
if not obj.access(caller, locktype):
|
||||||
accountstr = 'account' if accountmode else 'object'
|
accountstr = 'account' if accountmode else 'object'
|
||||||
caller.msg(f"You are not allowed to edit this {accountmode}'s permissions.")
|
caller.msg(f"You are not allowed to edit this {accountstr}'s permissions.")
|
||||||
return
|
return
|
||||||
|
|
||||||
caller_result = []
|
caller_result = []
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue