Closed noxify closed 9 years ago
I think I have been fixed this issue. But currently I'm not working on master
branch. If you look this file on develop
branch in this link I have been added the if statement to check user permission before we update the user permissions.
Hi,
my pull request fixes the problem, that you can't add a permission to role if the role has no other permissions.
Your condition (same in develop and master) will only save the permission update if there are one or more permissions attached.
Example:
Role: Administrator has by default some permissions (like manage_articles etc.) and the count() will return a value > 0.
But if you create a new role, there are no permissions attached. If you now try to add a new permission (via update), the selected permission(s) will not be added.
Fixes the problem that permissions are not saved, when the role had no other permissions.