Skip to content
Snippets Groups Projects
Commit b0cd3267 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-3921: updating permissions for News and Blogs

parent c4640a09
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,7 @@ class UwContentAccessForm extends FormBase {
}
// Get the permissions array for this form.
$uw_permissions = $this->uw_get_permissions_array();
$uw_permissions = UwPermissions::uw_get_permissions_array();
// Step through each permission and setup table.
foreach ($uw_permissions as $feature => $uw_permission) {
......@@ -180,8 +180,10 @@ class UwContentAccessForm extends FormBase {
}
}
// Save the permissions.
UwPermissions::uw_save_permissions($uw_roles);
// Set the message that the permissions have been saved.
$this->messenger()->addStatus($this->t('The changes have been saved.'));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment