Updated permissions array

This commit is contained in:
snipe 2016-06-02 02:39:23 -07:00
parent 46d3a784a2
commit 5f5fddb7a4

View file

@ -6,7 +6,7 @@ return array(
array( array(
'permission' => 'superuser', 'permission' => 'superuser',
'label' => 'Super User', 'label' => 'Super User',
'note' => 'Determines whether the user has full access to all aspects of the admin. ', 'note' => 'Determines whether the user has full access to all aspects of the admin. This setting overrides any more specific permissions throughout the system. ',
'display' => true, 'display' => true,
), ),
), ),
@ -18,13 +18,19 @@ return array(
'note' => 'Determines whether the user has access to most aspects of the admin. ', 'note' => 'Determines whether the user has access to most aspects of the admin. ',
'display' => true, 'display' => true,
), ),
array(
'permission' => 'admin.api_key',
'label' => 'Create API Key',
'note' => 'Determines whether the user can access the API via API key.',
'display' => false,
),
), ),
'Reports' => array( 'Reports' => array(
array( array(
'permission' => 'reports.view', 'permission' => 'reports.view',
'label' => '', 'label' => 'View',
'note' => 'Determines whether the user has the abiity to view reports.', 'note' => 'Determines whether the user has the ability to view reports.',
'display' => true, 'display' => true,
), ),
), ),
@ -32,64 +38,92 @@ return array(
'Assets' => array( 'Assets' => array(
array( array(
'permission' => 'assets.view', 'permission' => 'assets.view',
'label' => '', 'label' => 'View ',
'note' => '', 'note' => '',
'display' => false, 'display' => true,
), ),
array( array(
'permission' => 'assets.create', 'permission' => 'assets.create',
'label' => 'Create Assets', 'label' => 'Create ',
'note' => '', 'note' => '',
'display' => false, 'display' => false,
), ),
array( array(
'permission' => 'assets.edit', 'permission' => 'assets.edit',
'label' => 'Edit Assets', 'label' => 'Edit ',
'note' => '', 'note' => '',
'display' => false, 'display' => false,
), ),
array( array(
'permission' => 'assets.delete', 'permission' => 'assets.delete',
'label' => 'Delete Assets', 'label' => 'Delete ',
'note' => '', 'note' => '',
'display' => false, 'display' => false,
), ),
array( array(
'permission' => 'assets.checkout', 'permission' => 'assets.checkout',
'label' => 'View Assets', 'label' => 'Checkout ',
'note' => '', 'note' => '',
'display' => false, 'display' => false,
), ),
array(
'permission' => 'assets.checkin',
'label' => 'Checkin ',
'note' => '',
'display' => false,
),
array(
'permission' => 'assets.audit',
'label' => 'Audit ',
'note' => '',
'display' => false,
),
array(
'permission' => 'assets.view.requestable',
'label' => 'View Requestable Assets',
'note' => '',
'display' => true,
),
), ),
'Accessories' => array( 'Accessories' => array(
array( array(
'permission' => 'accessories.view', 'permission' => 'accessories.view',
'label' => '', 'label' => 'View ',
'note' => '', 'note' => '',
'display' => false, 'display' => true,
), ),
array( array(
'permission' => 'accessory.create', 'permission' => 'accessory.create',
'label' => 'Create Assets', 'label' => 'Create ',
'note' => '', 'note' => '',
'display' => false, 'display' => false,
), ),
array( array(
'permission' => 'accessories.edit', 'permission' => 'accessories.edit',
'label' => 'Edit Assets', 'label' => 'Edit ',
'note' => '', 'note' => '',
'display' => false, 'display' => false,
), ),
array( array(
'permission' => 'accessories.delete', 'permission' => 'accessories.delete',
'label' => 'Delete Assets', 'label' => 'Delete ',
'note' => '', 'note' => '',
'display' => false, 'display' => false,
), ),
array( array(
'permission' => 'accessories.checkout', 'permission' => 'accessories.checkout',
'label' => 'View Assets', 'label' => 'Checkout ',
'note' => '',
'display' => false,
),
array(
'permission' => 'accessories.checkin',
'label' => 'Checkin ',
'note' => '', 'note' => '',
'display' => false, 'display' => false,
), ),
@ -98,31 +132,31 @@ return array(
'Consumables' => array( 'Consumables' => array(
array( array(
'permission' => 'consumables.view', 'permission' => 'consumables.view',
'label' => '', 'label' => 'View',
'note' => '', 'note' => '',
'display' => false, 'display' => true,
), ),
array( array(
'permission' => 'consumables.create', 'permission' => 'consumables.create',
'label' => 'Create Consumables', 'label' => 'Create ',
'note' => '', 'note' => '',
'display' => false, 'display' => false,
), ),
array( array(
'permission' => 'consumables.edit', 'permission' => 'consumables.edit',
'label' => 'Edit Consumables', 'label' => 'Edit ',
'note' => '', 'note' => '',
'display' => false, 'display' => false,
), ),
array( array(
'permission' => 'consumables.delete', 'permission' => 'consumables.delete',
'label' => 'Delete Consumables', 'label' => 'Delete ',
'note' => '', 'note' => '',
'display' => false, 'display' => false,
), ),
array( array(
'permission' => 'consumables.checkout', 'permission' => 'consumables.checkout',
'label' => 'Checkout Consumables', 'label' => 'Checkout ',
'note' => '', 'note' => '',
'display' => false, 'display' => false,
), ),
@ -132,9 +166,9 @@ return array(
'Licenses' => array( 'Licenses' => array(
array( array(
'permission' => 'licenses.view', 'permission' => 'licenses.view',
'label' => '', 'label' => 'View',
'note' => '', 'note' => '',
'display' => false, 'display' => true,
), ),
array( array(
'permission' => 'licenses.create', 'permission' => 'licenses.create',
@ -172,9 +206,9 @@ return array(
'Components' => array( 'Components' => array(
array( array(
'permission' => 'components.view', 'permission' => 'components.view',
'label' => '', 'label' => 'View',
'note' => '', 'note' => '',
'display' => false, 'display' => true,
), ),
array( array(
'permission' => 'components.create', 'permission' => 'components.create',
@ -200,15 +234,21 @@ return array(
'note' => '', 'note' => '',
'display' => false, 'display' => false,
), ),
array(
'permission' => 'components.checkin',
'label' => 'Checkin Components',
'note' => '',
'display' => false,
),
), ),
'Users' => array( 'Users' => array(
array( array(
'permission' => 'users.view', 'permission' => 'users.view',
'label' => 'View Users', 'label' => 'View ',
'note' => '', 'note' => '',
'display' => false, 'display' => true,
), ),
array( array(
'permission' => 'users.create', 'permission' => 'users.create',