Skip to content
Snippets Groups Projects
Commit 38b0d374 authored by Martin Mareš's avatar Martin Mareš
Browse files

Import: Kosmetika

parent d329e5f2
No related branches found
No related tags found
No related merge requests found
...@@ -285,10 +285,10 @@ class Import: ...@@ -285,10 +285,10 @@ class Import:
category=category, year=year, seq=seq, category=category, year=year, seq=seq,
assigned_by_user=self.user) assigned_by_user=self.user)
if not (ur.is_legal()): if not ur.is_legal():
return self.error('Tato kombinace role a místa není povolena') return self.error('Tato kombinace role a místa není povolena')
if not (self.gatekeeper.can_set_role(ur)): if not self.gatekeeper.can_set_role(ur):
return self.error(f'Roli "{ur}" nelze přidělit, není podmnožinou žádné vaší role') return self.error(f'Roli "{ur}" nelze přidělit, není podmnožinou žádné vaší role')
sess.add(ur) sess.add(ur)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment