Skip to content

Commit

Permalink
[update]
Browse files Browse the repository at this point in the history
  • Loading branch information
boke0 committed Mar 2, 2021
1 parent 9079823 commit 437a53e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mitama/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,7 @@
}
])

def is_admin(node):
return Permission.is_accepted('admin', node)

db.create_all()

0 comments on commit 437a53e

Please sign in to comment.