-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User from the installer lacks permissions? #3310
Comments
Hello, Looking at the way you’re investigating the matter, I am sure that you’re really far from being stupid :-) The matter you’re encountering deals with MySQL's or MariaDB's default sql_mode. Add into the my.cnf or my.ini sql_mode=‘' see : https://docs.phraseanet.com/4.0/en/Admin/Prerequisite.html#database A pull request have been made by our development team adapt Phraseanet to SQL strict_mode. Other way to test Phraseanet : Use Docker : See details into the README of the application User our virtualbox VM : https://www.phraseanet.com/builds/vm/vm_ovf1_vmdk_phraseanet40_rc_20170410.zip Regards |
Hello, thanks for the help :)
But this also doesn't work. Here are some more information about the system maybe that will help:
Looking at the docs again i saw this: Phraseanet ./setup check:system
I've compared my system to the VM you provided and except for the versions of the programms everything else seems to be the same. |
I installed phraseanet 4.1 and 4.0.9 on an Ubuntu 18.04 machine both versions have the same issue.
The installer completes and i can login with the user that has been created during the installation.
I want to create another user so i check the docs and they say: "Admin"->"Users"->"New User"
So i go to "Admin" and see that i don't have the "Users" Page.
The reason for that seems to be that my user lacks the "canadmin" permission in basusr.
While researching the bug i saw in templates/web/admin/tree.html.twig
That my user seems to need the canadmin flag.
Looking into the basusr table i saw that my user doesn't even have an entry there so i made an insert into the table and it showed up (But fails with an error when trying to access it).
After that i tried to figure out why my user doesn't have this flags.
Looking into lib/Alchemy/Phrasea/Setup/Installer.php and following the createUser trace, i saw that the User Object never sets those flags.
I'm not sure if this is a bug or if i've made an error? I would like to know what the correct way of installing Phraseanet is since the normal documented way seems to miss some important step. (Or i am just stupid)
The text was updated successfully, but these errors were encountered: