dispatch/modules/auth/models.py
def get_permissions(self):
        """Returns the user's permissions."""

        permissions = ''
        if self.groups.filter(name='Admin').exists() or self.is_superuser:
            permissions = 'admin'

        return permissions
def get_permissions(self):
        permissions = ''
        if self.groups.filter(name='Admin').exists() or self.is_superuser:
            permissions = 'admin'

        return permissions
def get_permissions ( self ) : permissions = '' if self . groups . filter ( name = 'Admin' ) . exists ( ) or self . is_superuser : permissions = 'admin' return permissions
Returns the user's permissions.
Returns the user s permissions .