Fix permission level to edit object. Resolve #1801

This commit is contained in:
Griatch 2019-03-31 22:06:06 +02:00
parent 83c6bb69d1
commit 690a11754d

View file

@ -496,7 +496,7 @@ def _object_search_actions(caller, raw_inp, **kwargs):
else:
# load prototype
if not obj.access(caller, 'control'):
if not obj.access(caller, 'edit'):
caller.msg("|rYou don't have access to do this with this object.|n")
del caller.ndb._menutree.olc_search_object_term
return "node_search_object"