Admin interface for snippets
This commit is contained in:
parent
45df60cfc6
commit
53ce827b17
15 changed files with 214 additions and 83 deletions
|
|
@ -32,6 +32,10 @@ class User(Model):
|
|||
self.name = name
|
||||
self.openid = openid
|
||||
|
||||
@property
|
||||
def is_admin(self):
|
||||
return self.openid in config.ADMINS
|
||||
|
||||
def __eq__(self, other):
|
||||
return type(self) is type(other) and self.id == other.id
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue