Removed has_perm function from typeclass model. This function is looked for by django admin and expected to do something different, and it was deprecated anyway.
This commit is contained in:
parent
083642b2dd
commit
40ff9eaa67
1 changed files with 0 additions and 5 deletions
|
|
@ -1403,11 +1403,6 @@ class TypedObject(SharedMemoryModel):
|
||||||
"""
|
"""
|
||||||
return self.locks.check(accessing_obj, access_type=access_type, default=default)
|
return self.locks.check(accessing_obj, access_type=access_type, default=default)
|
||||||
|
|
||||||
def has_perm(self, accessing_obj, access_type):
|
|
||||||
"Alias to access"
|
|
||||||
logger.log_depmsg("has_perm() is deprecated. Use access() instead.")
|
|
||||||
return self.access(accessing_obj, access_type)
|
|
||||||
|
|
||||||
def check_permstring(self, permstring):
|
def check_permstring(self, permstring):
|
||||||
"""
|
"""
|
||||||
This explicitly checks if we hold particular permission without involving
|
This explicitly checks if we hold particular permission without involving
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue