thmsnhl Posted September 25, 2014 Posted September 25, 2014 Hi I already asked in the thread for PageEditPerUser.module but there was no reaction at all. I have problems with giving specific users (by username, not by role) the ability to add children to specific pages, I guess there's some kind of rewriting the CustomPageRoles.module but I'm not deeply enough into php to do this. Can anybody help me? Thanks, Tommy
adrian Posted September 25, 2014 Posted September 25, 2014 I haven't managed to test out this new module yet, so I am not sure, but I think it should do what you are looking for: https://processwire.com/talk/topic/6822-module-dynamic-roles-for-pw-246/ 1
thmsnhl Posted September 25, 2014 Author Posted September 25, 2014 Thank you adrian, in theory this is exactly what I'm looking for, sadly it doesn't seem to work. Maybe I have to wait for the stable release to use it.
kongondo Posted September 25, 2014 Posted September 25, 2014 What is not working? What's your PW version and other server environment info?
thmsnhl Posted September 25, 2014 Author Posted September 25, 2014 I just updated to PW 2.5.0 and installed the Module without any errors, but when I set up a dynamic role and configure it the way I want, it does not affect the abilities of the selected user. And what do you need to know about the server environment?
kongondo Posted September 25, 2014 Posted September 25, 2014 I Should have been clearer server environment = PHP and MySQL versions. In order to be able to help you further, it is good if you are as specific as possible about how you set up the dynamic role and 'configured it the way you want' . May I suggest that you post this in the module's thread here: https://processwire.com/talk/topic/6822-module-dynamic-roles-for-pw-246/ then we can take it from there. If you are on a development environment (i.e. not your live website), please also turn on debug mode in /site/config.php/. Set it to true.
thmsnhl Posted September 26, 2014 Author Posted September 26, 2014 So, now I have the info you needed.PHP v.5.6 MySQL v.5.5.38 PW v.2.5.0 And to complete my post: I created a dynamic role called "philipp-dynamic" with the following configuration: who? > name equals philipp template=user, include=all, name=philipp permissionspage-delete, page-edit, page-view, profile-editwhat can they view? > title contains text philipptitle%=philipp what can they edit? > id equals 2231 (page called philipp) where can they add new pages? > id equals 2231 Which leads the user called philipp to be able to edit every page which is in the page-tree except from the homepage, but there is no possibility to add pages anywhere. The "matches 1 page"-field in dynamic roles page tells me, that every condition should fit to the correct pages, but the reality looks different.
kongondo Posted September 29, 2014 Posted September 29, 2014 @Tommy, also answered in the other thread. Add page-publish to the Permissions.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now