support #381

Merged
edraft merged 31 commits from support into master 2023-09-28 20:03:32 +02:00
Showing only changes of commit ecd3ea96b1 - Show all commits

View File

@ -42,7 +42,7 @@ class ShortRoleNameMutation(QueryABC):
)
result = self._short_role_names.find_short_role_names_by_role_id(short_role_name.role_id)
if result is not None:
if result.count() > 0:
raise ValueError("Short name for role already exists")
self._short_role_names.add_short_role_name(short_role_name)