mirror of
https://github.com/kingmo888/rustdesk-api-server.git
synced 2026-02-21 10:27:23 +08:00
后台admin调整为只有管理员可以登录, fix #12
This commit is contained in:
parent
44a896896d
commit
0f116462f6
@ -74,7 +74,7 @@ class UserProfile(AbstractBaseUser, PermissionsMixin):
|
||||
@property
|
||||
def is_staff(self):
|
||||
"Is the user a member of staff?"
|
||||
# Simplest possible answer: All admins are staff
|
||||
# Simplest possible answer: All admins are staff
|
||||
return self.is_admin
|
||||
|
||||
class Meta:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user