This commit is contained in:
Tim Lorsbach
2026-09-15 23:13:21 +02:00
parent b269b7dfd8
commit c60eac879e
3 changed files with 43 additions and 1 deletions
+3
View File
@@ -581,6 +581,9 @@ class PackageManager(object):
if caller_perm != Permission.ALL[0] and not caller.is_superuser:
raise ValueError("Only owner are allowed to modify permissions")
if isinstance(grantee, Group) and package.classification_level == package.Classification.SECRET:
raise ValueError("Cannot grant permissions to a Group on a secret package")
data = {
"package": package,
}