Hi, I’m using WordPress 2.9.1 and AjaXplorer version 2.6.1. In WordPress I have activated the AjaXplorer plugin version 0.3 and it’s configurated to create automatically the users from my WordPress site.
When the users are created in my AjaXplorer, they haven’t permissions to read or to write.
How can I add permissions automatically when the user is created in AjaXplorer?
Thank you charles! My problem is solved with your answer.
I have a new problem.
How can I give different permissions according to user’s role?
For example: An user with role “editor” can read and write, but an user with role “suscriptor” only can read.
mm that’s getting more complicated here… You’ll have to go inside the class.WpAjxp.php and hack!In the authenticate() function, after the include($this->glueCode) line , you have to call wordpress get_userdata, detect it’s wp rights, then use ajxp AuthService to get Ajxp user object and update its right. Beware to always know if you are handling AJXP or WP user… A bit messy here
PS : In the createUser (that is in fact called at user login if you have autoCreateUser set to true), there is a check on the WordPress $userData->user_level to see if he is admin. It’ s the way to detect the user rights.
Charles, Pydio author - doing my best to help !
If you like the software or want to say thanks, pay by a tweet, mention #pydio or follow us