Skip to content

Commit 95ab230

Browse files
author
Medizen
committed
[BUGIX] Add plugin-enabled check condition to CustomObjectPermissions.php to solve issue acquia#290
1 parent 94ff1e5 commit 95ab230

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Security/Permissions/CustomObjectPermissions.php

+4
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ public function __construct(
5656
*/
5757
public function definePermissions(): void
5858
{
59+
if (!$this->isEnabled()) {
60+
return;
61+
}
62+
5963
$this->addExtendedPermissions(['custom_fields', self::NAME]);
6064

6165
$customObjects = $this->getCustomObjects();

0 commit comments

Comments
 (0)