Dump changes

This commit is contained in:
Andrey Chervyakov 2021-10-09 21:33:03 +06:00
parent b49c6ced26
commit a4b572dcc7
40 changed files with 186 additions and 37 deletions

View file

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,6 @@
from app.user.model import User
def has_role(name: str, user: User):
if user.role.name != name:
raise Exception()