diff --git a/config/permissions.php b/config/permissions.php index 6e578ae9d..0337916c1 100644 --- a/config/permissions.php +++ b/config/permissions.php @@ -17,14 +17,7 @@ return array( 'label' => '', 'note' => 'Determines whether the user has access to most aspects of the admin. ', '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( diff --git a/resources/views/groups/edit.blade.php b/resources/views/groups/edit.blade.php index 0d94a7703..169f7141f 100755 --- a/resources/views/groups/edit.blade.php +++ b/resources/views/groups/edit.blade.php @@ -6,60 +6,178 @@ ]) @section('content') - + + + @parent @stop @section('inputFields')
Permission | +Grant | +Deny | +
---|---|---|
+ {{ $area . ': ' . $localPermission['label'] }}+ |
+ + {{ Form::radio('permission['.$localPermission['permission'].']', '1',$groupPermissions[$localPermission['permission'] ] == '1',['value'=>"grant", 'class'=>'minimal']) }} + | ++ {{ Form::radio('permission['.$localPermission['permission'].']', '0',$groupPermissions[$localPermission['permission'] ] == '0',['value'=>"grant", 'class'=>'minimal']) }} + | +
+ {{ $area . ': ' . $localPermission['label'] }}+{{ $localPermission['note'] }} - -
-
-
+ |
+ + {{ Form::radio("$area", '1',false,['value'=>"grant", 'class'=>'minimal', 'data-checker-group' => str_slug($area)]) }} + | ++ {{ Form::radio("$area", '0',false,['value'=>"deny", 'class'=>'minimal', 'data-checker-group' => str_slug($area)]) }} + | +
+ {{ $this_permission['label'] }} + | ++ {{ Form::radio('permission['.$this_permission['permission'].']', '1',$groupPermissions[$this_permission['permission'] ] == '1',['class'=>'minimal radiochecker-'.str_slug($area)]) }} + | ++ {{ Form::radio('permission['.$this_permission['permission'].']', '0',$groupPermissions[$this_permission['permission'] ] == '0',['class'=>'minimal radiochecker-'.str_slug($area)]) }} + | +
+ |