def has_module_perms(self, app_label): """ Returns True if the user has any permissions in the given app label. Uses pretty much the same logic as has_perm, above. """ # Active superusers have all permissions. if self.is_active and self.is_superuser: return True return auth._user_has_module_perms(self, app_label)
def has_module_perms(self, app_label): """ Returns True if the user has any permissions in the given app label. Uses pretty much the same logic as has_perm, above. """ if not self.is_active: return False if self.is_superuser: return True return django_auth_models._user_has_module_perms(self, app_label)
def has_module_perms(self, app_label): if self.is_superuser and self.activo: return True return _user_has_module_perms(self, app_label)
def has_module_perms(self, module): return auth_models._user_has_module_perms(self, module)
def has_module_perm(self, app_label): return _user_has_module_perms(self, app_label)
def has_module_perms(self, app_label): # Active superusers have all permissions. if self.is_active and self.is_superuser: return True return _user_has_module_perms(self, app_label)
def has_module_perms(self, module): return _user_has_module_perms(self, module)
def has_module_perms(self, app_label): """ :param app_label: :return: """ return _user_has_module_perms(self, app_label)
def has_module_perms(self, package_name): return _user_has_module_perms(self, package_name)
def has_module_perms(self, app_label): if self.is_active and self.is_superuser: return True return _user_has_module_perms(self, app_label)
def has_module_perms(self, module): return authModels._user_has_module_perms(self, module)
def has_module_perms(self, app_label): """user가 주어진 app_label에 해당하는 권한이 있는지, has_perm과 비슷""" if self.is_active and self.is_superuser: return True return auth_models._user_has_module_perms(self, app_label)