NOW MANAGED ON CODEBERG
Added warning to role screen for important permissions
Dan Brown1ac11c18527e
diff --git a/resources/lang/en/settings.php b/resources/lang/en/settings.phpindex f1345c743..679d4b8a8 100755--- a/resources/lang/en/settings.php+++ b/resources/lang/en/settings.php@@ -106,6 +106,7 @@ return ['role_access_api' => 'Access system API','role_manage_settings' => 'Manage app settings','role_asset' => 'Asset Permissions',+ 'roles_system_warning' => 'Be aware that access to any of the above three permissions can allow a user to alter their own privileges or the privileges of others in the system. Only assign roles with these permissions to trusted users.','role_asset_desc' => 'These permissions control default access to the assets within the system. Permissions on Books, Chapters and Pages will override these permissions.','role_asset_admins' => 'Admins are automatically given access to all content but these options may show or hide UI options.','role_all' => 'All',diff --git a/resources/views/settings/roles/form.blade.php b/resources/views/settings/roles/form.blade.phpindex ed57ad944..43bc2b024 100644--- a/resources/views/settings/roles/form.blade.php+++ b/resources/views/settings/roles/form.blade.php@@ -28,19 +28,23 @@</div></div>- <div class="grid half" permissions-table>- <div>- <label class="setting-list-label">{{ trans('settings.role_system') }}</label>- <a href="#" permissions-table-toggle-all class="text-small text-primary">{{ trans('common.toggle_all') }}</a>- </div>- <div class="toggle-switch-list">- <div>@include('settings.roles.checkbox', ['permission' => 'settings-manage', 'label' => trans('settings.role_manage_settings')])</div>- <div>@include('settings.roles.checkbox', ['permission' => 'users-manage', 'label' => trans('settings.role_manage_users')])</div>- <div>@include('settings.roles.checkbox', ['permission' => 'user-roles-manage', 'label' => trans('settings.role_manage_roles')])</div>- <div>@include('settings.roles.checkbox', ['permission' => 'restrictions-manage-all', 'label' => trans('settings.role_manage_entity_permissions')])</div>- <div>@include('settings.roles.checkbox', ['permission' => 'restrictions-manage-own', 'label' => trans('settings.role_manage_own_entity_permissions')])</div>- <div>@include('settings.roles.checkbox', ['permission' => 'templates-manage', 'label' => trans('settings.role_manage_page_templates')])</div>- <div>@include('settings.roles.checkbox', ['permission' => 'access-api', 'label' => trans('settings.role_access_api')])</div>+ <div permissions-table>+ <label class="setting-list-label">{{ trans('settings.role_system') }}</label>+ <a href="#" permissions-table-toggle-all class="text-small text-primary">{{ trans('common.toggle_all') }}</a>++ <div class="toggle-switch-list grid half mt-m">+ <div>+ <div>@include('settings.roles.checkbox', ['permission' => 'restrictions-manage-all', 'label' => trans('settings.role_manage_entity_permissions')])</div>+ <div>@include('settings.roles.checkbox', ['permission' => 'restrictions-manage-own', 'label' => trans('settings.role_manage_own_entity_permissions')])</div>+ <div>@include('settings.roles.checkbox', ['permission' => 'templates-manage', 'label' => trans('settings.role_manage_page_templates')])</div>+ <div>@include('settings.roles.checkbox', ['permission' => 'access-api', 'label' => trans('settings.role_access_api')])</div>+ </div>+ <div>+ <div>@include('settings.roles.checkbox', ['permission' => 'settings-manage', 'label' => trans('settings.role_manage_settings')])</div>+ <div>@include('settings.roles.checkbox', ['permission' => 'users-manage', 'label' => trans('settings.role_manage_users')])</div>+ <div>@include('settings.roles.checkbox', ['permission' => 'user-roles-manage', 'label' => trans('settings.role_manage_roles')])</div>+ <p class="text-warn text-small mt-s mb-none">{{ trans('settings.roles_system_warning') }}</p>+ </div></div></div>