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:
Kelketek 2013-07-20 12:10:47 -05:00
parent 083642b2dd
commit 40ff9eaa67

View file

@ -1403,11 +1403,6 @@ class TypedObject(SharedMemoryModel):
"""
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):
"""
This explicitly checks if we hold particular permission without involving