Closed (fixed)
Project:
Open Social
Version:
8.x-1.x-dev
Component:
Code (back-end)
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Nov 2017 at 10:21 UTC
Updated:
26 Dec 2017 at 11:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
kingdutchPatch attached. Pull request here: https://github.com/goalgorilla/open_social/pull/654
Instead of throwing an error we return an empty array for roles
that we don't want to explicitly grant permissions to. The users
with these roles will also inherit the permissions from the
"authenticated user" role.
This also removes the need for a special case for the administrator
role.
Passing an empty array to `user_role_grant_permissions` will not
modify any permissions.
Comment #3
jochemvn commentedReviewed and merged. Will be part of the next release of Open Social.
ps. Demoted from major > normal, since it's an experimental module
Comment #4
jochemvn commented