Jump to content


Photo

new user role can't publish...must be missing something.

solved pages roles permissions

  • Please log in to reply
15 replies to this topic

#1 evan

evan

    Jr. Member

  • Members
  • PipPip
  • 42 posts
  • 10

Posted 29 February 2012 - 02:26 PM

Hello,

Somehow I can't seem to get a new user role to publish new pages -- only create and save unpublished.

I created a new role called "editor" with view, edit, delete, and move permissions. I also allowed access management on the appropriate template. Still nothing. What am I missing?

I'm using PW 2.2.

Knowing how this goes, I'll probably figure this out in a second or two...!

Tempting fate,

-e.

#2 Soma

Soma

    Hero Member

  • Moderators
  • 3,421 posts
  • 1944

  • LocationSH, Switzerland

Posted 29 February 2012 - 02:58 PM

Add a "page-publish" permission and try again?

@somartist | modules created | support me, flattr my work flattr.com


#3 evan

evan

    Jr. Member

  • Members
  • PipPip
  • 42 posts
  • 10

Posted 29 February 2012 - 03:00 PM

I tried that too...no dice.

#4 Soma

Soma

    Hero Member

  • Moderators
  • 3,421 posts
  • 1944

  • LocationSH, Switzerland

Posted 29 February 2012 - 03:11 PM

http://processwire.c...__fromsearch__1

Have you tried really and added it to the template access settings too?

Edit:
Upps, that isn't really the issue I think.

I just tried in my local install latest PW and no problem with publishing pages even without the page-publish permission.

Edit: The page-publish permission is only if you want to hide it...
So maybe you haven't checked it, take a look if you have access setting enabled in your PW template.

@somartist | modules created | support me, flattr my work flattr.com


#5 evan

evan

    Jr. Member

  • Members
  • PipPip
  • 42 posts
  • 10

Posted 29 February 2012 - 03:18 PM

Well, nothing changes on the template access side...it still just shows the view, edit, create, and add children options. Should there be another option? Do I need to do anything more than add a "page-publish" item in the permissions settings, and select it in the appropriate role?

#6 Soma

Soma

    Hero Member

  • Moderators
  • 3,421 posts
  • 1944

  • LocationSH, Switzerland

Posted 29 February 2012 - 03:26 PM

WOw I should first think then write :D

I didn't test correctly I didn't logout and login with editor... mmm

I will try again an see.


Edit:
Ok this is getting messy, it's so odd I can't even describe it.

I added page-publish permission, and tried different settings. First time I try the editor could only edit the one unpublished page an all others only view... and when trying to edit the page I got.

Duplicate entry 'for-page-1010-1070' for key 'name_parent_id'

So trying to find a reason, I looked at the settings on page with superuser, and published and unpublished - and it showed me different permission for the editor role, in each state.

After that I removed the page-publish permisson, and now the editor can edit all pages again, although the error stays and won't go away...

So I don't know if my install is messed up after all those tests and updates. I would have to reinstall a fresh one and test again to see.

@somartist | modules created | support me, flattr my work flattr.com


#7 evan

evan

    Jr. Member

  • Members
  • PipPip
  • 42 posts
  • 10

Posted 29 February 2012 - 03:36 PM

Another weird thing is that I've tried enabling all the permissions on this particular role -- which is the same as superuser, correct? -- and it still doesn't let me publish.

I double-checked that user's role is correct, so it ain't that kind of mistake....must be some other dumb thing I'm missing!

#8 Soma

Soma

    Hero Member

  • Moderators
  • 3,421 posts
  • 1944

  • LocationSH, Switzerland

Posted 29 February 2012 - 03:59 PM

I just reinstalled a fresh and latest PW.

And I have just added a editor role with view edit delete permissions. Gave access right (all) on template basic-page for editor role. After that when creating a new page I can't publish it, only save and keep unpublished.

There seems to be something wrong with current access system. Ryan? :D

@somartist | modules created | support me, flattr my work flattr.com


#9 evan

evan

    Jr. Member

  • Members
  • PipPip
  • 42 posts
  • 10

Posted 29 February 2012 - 03:59 PM

OK, I think I figured it out, but I don't understand why it worked. On the template I had specified a single children template, and I removed it. Now the user's able to publish. But I tried adding the single template option again to see if it would disallow publishing again, and it still allowed the user to publish. Maybe it had something to do with the "change template" permission, and when I added the role? Very weird!

Nevermind! Forgot I had the superuser role assigned.

At least I know this issue is repeatable and I didn't just miss something.

#10 Soma

Soma

    Hero Member

  • Moderators
  • 3,421 posts
  • 1944

  • LocationSH, Switzerland

Posted 29 February 2012 - 04:31 PM

Yeah, I wasn't able to get the editor publish unpublished pages. Although I managed to get some strange behaviors, when I remove the page-publish permission from the editor role I suddenly can't even edit pages anymore except for the unpublished ones, for example...

I think only Ryan would know what's going on. Certainly a bug or alike.

@somartist | modules created | support me, flattr my work flattr.com


#11 ryan

ryan

    Hero Member

  • Administrators
  • 5,985 posts
  • 3386

  • LocationAtlanta, GA

Posted 29 February 2012 - 05:24 PM

Sorry guys--looks like a bug, thanks for finding it. Just fixed this in the latest commit. When you get a chance, please confirm that it fixes it on your end too.

#12 evan

evan

    Jr. Member

  • Members
  • PipPip
  • 42 posts
  • 10

Posted 29 February 2012 - 06:16 PM

Looks like it works on my end now. Thanks so much!

#13 Alex

Alex

    Full Member

  • Members
  • PipPipPip
  • 81 posts
  • 5

  • LocationMelbourne, Australia

Posted 29 February 2012 - 10:17 PM

I think I might have this problem too.

When you say its fixed in the latest commit, do you mean that I need to download Processwire from Github and replace my install as if i'm upgrading?

#14 diogo

diogo

    Hero Member

  • Moderators
  • 2,068 posts
  • 1179

  • LocationPorto, Portugal

Posted 01 March 2012 - 04:14 AM

When you say its fixed in the latest commit, do you mean that I need to download Processwire from Github and replace my install as if i'm upgrading?


If your not using git, yes.
only the wire folder though

#15 pers0n

pers0n

    Jr. Member

  • Members
  • PipPip
  • 21 posts
  • 0

Posted 01 March 2012 - 03:52 PM

Anyway to roll out a new update soon?

I don't know how to use Git and I've tried to manually edit these but my PW 2.2 doenst have the same lines in wire/modules/PagePermissions.module as I've searched for those lines to edit them.

I'm having problems letting users create new pages and I think its related to this. I'm about to launch a site soon and just noticed this today as I had to setup some permissions. Not sure I have time to test the PW with the repeatable field stuff in it yet.

Sorry I found out the setting under "add children" wasnt checked on some items.

#16 Soma

Soma

    Hero Member

  • Moderators
  • 3,421 posts
  • 1944

  • LocationSH, Switzerland

Posted 01 March 2012 - 03:58 PM

You can just go to github download the zip file (button top left) https://github.com/r...ramerdesign/P21, nothing special. And then rename the wire folder in your install to "wire_old" and copy the new wire from the zip over. Repeaters aren't installed by default so it should be no problem. If you experience any problems you can roll back to the old wire folder. Also may report the issue you got in case.

@somartist | modules created | support me, flattr my work flattr.com






Also tagged with one or more of these keywords: solved, pages, roles, permissions

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users