Re-add hidden permission of overridden groups.
Commit work.
Provide a cleaner implementation.
Much more logic, need to populate teh hidden permissions.
Fix notice.
REmove debug
Merge master
Remove notice.:
Remove duplicate.
Fix notice.
WIP, remove irrelevant roles on validation.
WIP, trying to pass checkboxes values as a value type.
Revert "WIP, trying to pass checkboxes values as a value type."

This reverts commit 1d83827e21ef0c56cf7615ab8182a0026a279d3d.
Revert "WIP, remove irrelevant roles on validation."

This reverts commit 302ae079c05a6c08b5ac2347a4e40e16c50e5eca.
Add fixes.
GEt correct values.
Cleanup.
Fix notices
fix
Merge pull request #6160 from openscholar/6060-add-perm

WIP: Re-add hidden permission of overridden groups.