Finish access key auth

This commit is contained in:
ibuler
2016-12-25 13:15:28 +08:00
parent c5ab49c515
commit 2707012325
13 changed files with 190 additions and 37 deletions

View File

@@ -101,8 +101,8 @@ class User(AbstractUser):
return False
@property
def is_terminal(self):
return False
def is_app(self):
return self.role == 'App'
@is_superuser.setter
def is_superuser(self, value):