brevity
This commit is contained in:
parent
00bdf88b6e
commit
f9762d4a54
1 changed files with 2 additions and 3 deletions
|
@ -131,11 +131,10 @@ class User(UserBase):
|
||||||
) -> None:
|
) -> None:
|
||||||
for capability in capabilities:
|
for capability in capabilities:
|
||||||
if capability not in self.capabilities:
|
if capability not in self.capabilities:
|
||||||
cap = models.UserCapability(
|
db.add(models.UserCapability(
|
||||||
user_name=self.name,
|
user_name=self.name,
|
||||||
capability=capability.value,
|
capability=capability.value,
|
||||||
)
|
))
|
||||||
db.add(cap)
|
|
||||||
|
|
||||||
db.commit()
|
db.commit()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue