From 553e84fabaee88c001ef59cf4b612d52c09dfc42 Mon Sep 17 00:00:00 2001 From: Nathan Glasl Date: Tue, 8 Jan 2019 16:12:23 +1100 Subject: [PATCH] FIX: #24 --- src/dataobjects/DynamicList.php | 6 +++--- src/dataobjects/DynamicListItem.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/dataobjects/DynamicList.php b/src/dataobjects/DynamicList.php index 1035714..676bab3 100644 --- a/src/dataobjects/DynamicList.php +++ b/src/dataobjects/DynamicList.php @@ -78,7 +78,7 @@ public function canView($member = null) */ public function canEdit($member = null) { - return Permission::check('CMS_ACCESS_DynamicListAdmin', 'any', $member); + return Permission::check('CMS_ACCESS_Symbiote\DynamicLists\DynamicListAdmin', 'any', $member); } /** @@ -87,7 +87,7 @@ public function canEdit($member = null) */ public function canDelete($member = null) { - return Permission::check('CMS_ACCESS_DynamicListAdmin', 'any', $member); + return Permission::check('CMS_ACCESS_Symbiote\DynamicLists\DynamicListAdmin', 'any', $member); } /** @@ -98,7 +98,7 @@ public function canDelete($member = null) */ public function canCreate($member = null, $context = array()) { - return Permission::check('CMS_ACCESS_DynamicListAdmin', 'any', $member); + return Permission::check('CMS_ACCESS_Symbiote\DynamicLists\DynamicListAdmin', 'any', $member); } /** diff --git a/src/dataobjects/DynamicListItem.php b/src/dataobjects/DynamicListItem.php index 8f3e5d3..6a95ede 100644 --- a/src/dataobjects/DynamicListItem.php +++ b/src/dataobjects/DynamicListItem.php @@ -71,7 +71,7 @@ public function canView($member = null) */ public function canEdit($member = null) { - return Permission::check('CMS_ACCESS_DynamicListAdmin', 'any', $member); + return Permission::check('CMS_ACCESS_Symbiote\DynamicLists\DynamicListAdmin', 'any', $member); } /** @@ -80,7 +80,7 @@ public function canEdit($member = null) */ public function canDelete($member = null) { - return Permission::check('CMS_ACCESS_DynamicListAdmin', 'any', $member); + return Permission::check('CMS_ACCESS_Symbiote\DynamicLists\DynamicListAdmin', 'any', $member); } /** @@ -91,6 +91,6 @@ public function canDelete($member = null) */ public function canCreate($member = null, $context = array()) { - return Permission::check('CMS_ACCESS_DynamicListAdmin', 'any', $member); + return Permission::check('CMS_ACCESS_Symbiote\DynamicLists\DynamicListAdmin', 'any', $member); } }