Skip to content

Instantly share code, notes, and snippets.

@alanwillms
Created March 7, 2014 20:48
Show Gist options
  • Save alanwillms/9419766 to your computer and use it in GitHub Desktop.
Save alanwillms/9419766 to your computer and use it in GitHub Desktop.
<?php
return [
'signUpAsUser' => [
'type' => CAuthItem::TYPE_OPERATION,
'description' => '',
'bizRule' => '',
'data' => ''
],
'seeBlockedPublications' => [
'type' => CAuthItem::TYPE_OPERATION,
'description' => '',
'bizRule' => '',
'data' => ''
],
'manageCategories' => [
'type' => CAuthItem::TYPE_OPERATION,
'description' => '',
'bizRule' => '',
'data' => ''
],
'manageAuthors' => [
'type' => CAuthItem::TYPE_OPERATION,
'description' => '',
'bizRule' => '',
'data' => ''
],
'managePublications' => [
'type' => CAuthItem::TYPE_OPERATION,
'description' => '',
'bizRule' => '',
'data' => ''
],
'manageUsers' => [
'type' => CAuthItem::TYPE_OPERATION,
'description' => '',
'bizRule' => '',
'data' => ''
],
'anonymous' => [
'type' => CAuthItem::TYPE_ROLE,
'description' => '',
'bizRule' => '',
'data' => ''
],
'owner' => [
'type' => CAuthItem::TYPE_ROLE,
'description' => '',
'children' => [
// Roles
'anonymous',
// Operations
'seeBlockedPublications', 'manageCategories', 'manageAuthors',
'managePublications', 'manageUsers',
],
'bizRule' => '',
'data' => ''
],
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment