Jump to content

Permissions not working as expected [Solved]


Recommended Posts

I'm working on a site that's expecting lots of "authors" who create "stories". A smaller number of "editors" will then edit the stories. An even smaller number of "publishers" will then publish the story.

Given that, I've created three roles: "author", "editor", "publisher".

Authors can only edit their own stories. (They have the "page-edit-created" permission.)

Editors should be able to edit *any* story.

That's what I think I've set up:

image.thumb.png.2283c751faf0aceeacd062c6888404fd.png

but that's not what I'm getting:

image.png.4c815488b1cab14df1c94a4fc518770c.png

The first screenshot is from the "editor" role, the second is from a test user in that role. Note that the test user can't edit that story, they can only view it.

So it seems I'm not understanding something about how permissions and roles are supposed to work.

Any idea what that might be?

(Btw, the "publisher" role is able to edit anything on the site. That's defined in and inherited from the root, from the home page. That works! But I don't want "editor"s to be able to edit anything on the site, so I can't rely on inheritance for that role.)

Link to comment
Share on other sites

One other possibly relevant screenshot:

image.thumb.png.d2ed99d96d636b0c4cedb448c625a270.png

That's from the "story-item" template.

Authors should have the ability to edit, and that ability should be restricted by "page-edit-created".

Editors have "page-edit" and not "page-edit-created", so they should have the ability to edit *any* page.

But they don't.

What am I misunderstanding?

Link to comment
Share on other sites

Yet another screenshot; this is from the Settings of the story that was shown above, "Half a bed better than none?". This agrees with what the Page Tree is showing me. It just isn't what I expected given what the Template is showing me.

image.png.293bda31f54acc297417041019b8d701.png

Link to comment
Share on other sites

OK, sorry for the noise, I figured it out. But oh my goodness, it's subtle!

Editors can only edit *unpublished* stories:

image.png.7c271968e4eff6cfeeae257724f43be5.png

That is, I suppose, because they don't have the "page-publish" permission.

That's excellent, it's what I actually want, but as I said: oh my goodness, it's subtle!

  • Like 1
Link to comment
Share on other sites

  • Michael Lenaghan changed the title to Permissions not working as expected [Solved]

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...