Skip to content
Snippets Groups Projects
Commit 657dd852 authored by Rajab Natshah's avatar Rajab Natshah
Browse files

Issue #3406041: Grant new access unpublished permissions for anonymous and all...

Issue #3406041: Grant new access unpublished permissions for anonymous and all authenticated user roles and on update Grant the Site Admin user role with generate token permissions
parent a7d96caf
Branches
Tags
No related merge requests found
......@@ -14,7 +14,7 @@ use Drupal\access_unpublished\AccessUnpublished;
* Grant Access Unpublished permissions for a user role.
*/
function grant_access_unpublished_permissions(string $user_role) {
if ($site_admin_user_role = Role::load('site_admin')) {
if ($site_admin_user_role = Role::load($user_role)) {
// Default Access Unpublished permissions.
$permissions = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment