Skip to content
Snippets Groups Projects
Commit 50279c2a authored by mxh's avatar mxh
Browse files

Issue #3340867 by mxh, tt12: Unable to add new collection on Opensocial distribution

parent c985d9c5
No related branches found
No related tags found
No related merge requests found
......@@ -1154,7 +1154,7 @@ class Content extends ParameterBase implements EntityParameterInterface, Propert
// Therefore for that type this special handling is needed.
// @todo Remove this special handling once group relationship access
// control works without group context.
if ($entity_type_id === 'group_relationship') {
if (($entity_type_id === 'group_relationship') || ($entity_type_id === 'group_content')) {
$result = AccessResult::allowedIf(((string) \Drupal::currentUser()->id()) === '1');
}
else {
......
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