After login, administrator level users (-1) get this error:
\src\AdvancedSecurity.php(792): No user level settings.
Using dynamic user levels. Users with other levels are not affected.
After login, administrator level users (-1) get this error:
\src\AdvancedSecurity.php(792): No user level settings.
Using dynamic user levels. Users with other levels are not affected.
The error will be thrown if user level permissions not found. You may login as super admin and check the user level permissions table, make sure the permissions are set up. If you save your project as another project (not using “Save a copy…”), note that the project ID will be changed and you need to set up permissins for the new project again. Since there is a default user level (user level ID = 0), and you should have at least one table, there must be records in the table for the project.
But userlevelid = -1 has no permissions in the user level permissions table. It’s supposed to be that way. So the error shouldn’t appear for users with level -1.
And how may I set permissions for userlevel -1?
No need to define permissions for user level -1, since by default, Administrator has all permissions.
Although you are logged in as Administrator with user level -1, but if you have not defined any permissions for user level other than -1, then system will still display the error message “No user level settings.”.
Thanks for the clarification.
I checked the permissions for the other user levels. Logging in successfully (and permissions load as expected) for user levels 5 and 6.
However, after logging in with a user whose level is -1, albeit successful, I’m still getting this error:
\src\AdvancedSecurity.php(792): No user level settings.
I checked the records in the userlevelpermissions table and the project id prefix matches the one defined in constants.php.