You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a problem with the role assignment:
If $amp_default_role is set, all logged in users are assigned to this default_role,
no matter if there is an entry for the user in the $amp_role_assignment-array.
As stated in the previous published issues this seems not to be a consistent behaviour.
I tried to get down to the problem and found a solution.
Change the following lines in plugin.php: 271-278 in the following way:
The introduced brackets are imminent important!
The bracket in the line before the elseif makes the difference!
It assigns the elseif to the if-statement in line 271!
Without the bracket it depends on the version of your php interpreter how the elseif is assigned...
Some php interpreters (I presume the older ones) handle this assignment as described above...
Others (newer ones perhaps) seem to loose track and handle the elseif as a normal if-statement
without assignment due to missing brackets...
Regards
The text was updated successfully, but these errors were encountered:
There is a problem with the role assignment:
If
$amp_default_role
is set, all logged in users are assigned to this default_role,no matter if there is an entry for the user in the
$amp_role_assignment
-array.As stated in the previous published issues this seems not to be a consistent behaviour.
I tried to get down to the problem and found a solution.
Change the following lines in plugin.php: 271-278 in the following way:
The introduced brackets are imminent important!
The bracket in the line before the
elseif
makes the difference!It assigns the
elseif
to theif
-statement in line 271!Without the bracket it depends on the version of your php interpreter how the
elseif
is assigned...Some php interpreters (I presume the older ones) handle this assignment as described above...
Others (newer ones perhaps) seem to loose track and handle the
elseif
as a normalif
-statementwithout assignment due to missing brackets...
Regards
The text was updated successfully, but these errors were encountered: