mirror of
https://github.com/kingmo888/rustdesk-api-server.git
synced 2026-02-21 18:37:23 +08:00
后台admin调整为只有管理员可以登录 #issue_ident_12
This commit is contained in:
parent
1b2f45dee9
commit
44a896896d
@ -76,7 +76,7 @@ class UserProfile(AbstractBaseUser, PermissionsMixin):
|
||||
"Is the user a member of staff?"
|
||||
# Simplest possible answer: All admins are staff
|
||||
return self.is_admin
|
||||
#return self.is_active
|
||||
|
||||
class Meta:
|
||||
|
||||
verbose_name = "用户"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user