Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
    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)
Exemplo n.º 3
0
 def has_module_perms(self, app_label):
     if self.is_superuser and self.activo:
         return True
     return _user_has_module_perms(self, app_label)
Exemplo n.º 4
0
 def has_module_perms(self, module):
     return auth_models._user_has_module_perms(self, module)
Exemplo n.º 5
0
 def has_module_perm(self, app_label):
     return _user_has_module_perms(self, app_label)
Exemplo n.º 6
0
    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)
Exemplo n.º 7
0
 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)
Exemplo n.º 9
0
 def has_module_perms(self, package_name):
     return _user_has_module_perms(self, package_name)
Exemplo n.º 10
0
 def has_module_perms(self, module):
     return _user_has_module_perms(self, module)
Exemplo n.º 11
0
    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)
Exemplo n.º 12
0
    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)
Exemplo n.º 13
0
 def has_module_perms(self, module):
     return authModels._user_has_module_perms(self, module)
Exemplo n.º 14
0
 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)