def has_privilege(self, privilege): return add_admin_privilege(privilege)(self.privileges)
def has_privilege(self, privilege): """Check if the user has a given privilege. If the user has the BLOG_ADMIN privilege he automatically has all the other privileges as well. """ return add_admin_privilege(privilege)(self.privileges)