Skip to content

Commit

Permalink
Merge pull request #25 from symbiote/fix-permissions
Browse files Browse the repository at this point in the history
FIX: #24
  • Loading branch information
Nathan authored Jan 8, 2019
2 parents 94a84c4 + 553e84f commit beb53c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/dataobjects/DynamicList.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand All @@ -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);
}

/**
Expand All @@ -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);
}

/**
Expand Down
6 changes: 3 additions & 3 deletions src/dataobjects/DynamicListItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand All @@ -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);
}

/**
Expand All @@ -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);
}
}

0 comments on commit beb53c2

Please sign in to comment.