WordPress 2.9.1 integration and roles

Home Forums Troubleshooting Plugins & Bridges WordPress 2.9.1 integration and roles

This topic contains 4 replies, has 2 voices, and was last updated by Avatar of thrashtornado thrashtornado 3 years, 9 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #40981

    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?
    Thanks!


    #49693
    Avatar of charles
    charles
    Keymaster

    Use the « DEFAULT_RIGHT » repository parameter, (values are « r » or « w » or « rw »), that way the users will be applied this right on creation!
    Tell me if this solves your problem
    Charles


    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

    #49694

    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.
    Thanks!


    #49695
    Avatar of charles
    charles
    Keymaster

    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

    #49696

    Thanks charles, but I could not solve my problem :(
    Can you explain me this procedure in more detail?
    Regards!


Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.