добавил страницу ошибки Bad request и права пользователей, добавил форму регистрации
This commit is contained in:
@@ -36,9 +36,10 @@ class User(AbstractBaseUser):
|
||||
|
||||
def has_perm(self, perm, obj=None):
|
||||
# управления правами пользователя
|
||||
secure_level = -1
|
||||
if self.is_authenticated:
|
||||
secure_level = 0
|
||||
if not self.is_authenticated:
|
||||
return False
|
||||
|
||||
secure_level = 0
|
||||
if self.is_superuser:
|
||||
secure_level = 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user