Skip to content
Snippets Groups Projects
Commit 37f416ea authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Fix predicate

parent 262dc6fc
No related branches found
No related tags found
1 merge request!329Introduce substitution to do list
Pipeline #174112 failed
......@@ -70,7 +70,7 @@ def has_any_group_substitution_perm(user: User) -> bool:
return (
user.person.owner_of.exists()
or has_global_perm("chronos.view_lessonsubstitution")(user)
or has_any_object("core.manage_group_substitutions")(user, Group)
or has_any_object("core.manage_group_substitutions", Group)(user)
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment