mirror of
https://github.com/evennia/evennia.git
synced 2026-04-05 07:27:17 +02:00
self() lock function now works when a db object is passed.
This commit is contained in:
parent
261e463505
commit
b93a9b4487
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ def self(accessing_obj, accessed_obj, *args, **kwargs):
|
|||
This can be used to lock specifically only to
|
||||
the same object that the lock is defined on.
|
||||
"""
|
||||
return accessing_obj == accessed_obj
|
||||
return accessing_obj.typeclass == accessed_obj.typeclass
|
||||
|
||||
|
||||
def perm(accessing_obj, accessed_obj, *args, **kwargs):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue