'Return True if the user has any permissions in the given app label.
Use simlar logic as has_perm(), above.'

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)
