You are here

function paranoia_permissions_submit in Paranoia 8

Same name and namespace in other branches
  1. 7 paranoia.module \paranoia_permissions_submit()

Remove extremely-risky permissions from any role.

1 string reference to 'paranoia_permissions_submit'
paranoia_form_user_admin_permissions_alter in ./paranoia.module
Implements hook_form_FORM_ID_alter().

File

./paranoia.module, line 177
Disables PHP block visibility permission and gives status error if a role has this permission. Disables the PHP module. Hides the PHP and paranoia modules from the modules page. Prevents user/1 editing which could give access to abitrary contrib…

Code

function paranoia_permissions_submit($form, FormStateInterface $form_state) {
  _paranoia_remove_risky_permissions();
}