Skip to content
Snippets Groups Projects
Commit 96e5a21a authored by Jesper Zedlitz's avatar Jesper Zedlitz
Browse files

vorher prüfen, ob der Aufruf erlaubt ist

parent a48bfdba
No related branches found
No related tags found
No related merge requests found
...@@ -49,6 +49,7 @@ def add_pkg_to_collection(id_pkg, id_collection): ...@@ -49,6 +49,7 @@ def add_pkg_to_collection(id_pkg, id_collection):
'object': id_collection, 'object': id_collection,
'type': 'child_of', 'type': 'child_of',
} }
if toolkit.check_access('package_relationship_create',relationship_dict):
toolkit.get_action('package_relationship_create')(None, relationship_dict) toolkit.get_action('package_relationship_create')(None, relationship_dict)
def use_matomo(): def use_matomo():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment