Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add page interface still shows and loads when a user does not have permission #2396

Closed
2 tasks done
NightJar opened this issue Mar 11, 2019 · 1 comment
Closed
2 tasks done

Comments

@NightJar
Copy link
Contributor

NightJar commented Mar 11, 2019

4.3.x-dev @ 543307a

  • Be an admin
  • Site Config
  • Access
  • Who can create pages in the root of the site? Only these groups: Administrators
    image
  • Be a content editor (or other group with less permission)
    image
  • Load CMS pages admin
  • Observe "Add page" button
    image
  • Click "Add page" button
  • Select a page type to add, specifying the Top Level
    image
  • Click "Create"
  • See no feedback other than easily missed toast popout simply stating "Forbidden"
    image

Upon thinking about this further, the interface allows for creation of pages anywhere in the site tree, not just at the top level. So it does make sense that the button is always available, regardless of the current editing context (per the site tree interface widget).

However in the least it should be that Top level as an option is disabled if the user does not have permission to add a page to the top level. Ideally there'd be far more visible feedback as to why the create button has failed for the user too - perhaps with a little explanation for increased understanding.
image

PRs

@emteknetnz emteknetnz removed their assignment Oct 22, 2020
@bergice bergice closed this as completed Nov 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants