The function security_review_trusted_roles()
returns every role as trusted.
The problem comes from using the values (role names) of the security_review_untrusted_roles()
function's return value instead of the keys (role IDs) in the SQL query.
Applying array_keys()
on the $untrusted_roles
array solves the problem.
Review, commit.
None.
None.
Closed: outdated
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
No activities found.