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

[Specs needed] Access rules & permissions in the BO #1

Open
matks opened this issue Jan 23, 2019 · 0 comments
Open

[Specs needed] Access rules & permissions in the BO #1

matks opened this issue Jan 23, 2019 · 0 comments
Assignees
Labels
Help wanted Extra attention is needed

Comments

@matks
Copy link
Contributor

matks commented Jan 23, 2019

During the Symfony migration, some Symfony controllers were created with the following access rules:

  • index (display the page) can be accessed by a user if he is granted READ permission
  • form submission requires either CREATE, UPDATE, DELETE permissions (depends on what the form does)

Others were created with the following access rules:

  • index (display the page) can be accessed if the user is granted either READ, CREATE, UPDATE or DELETE permissions
  • form submission requires either CREATE, UPDATE, DELETE permissions (depends on what the form does)
    The 2nd kind of controllers were implementing the rule "if you can modify it, you should be able to display it".

So there was 2 different behaviors being used in the backoffice.
There was a need to decide of a global rule to be applied systematically.

After discussing it the core team, we agreed to go for the 1st system:

  • READ permission grants a BO user the ability to display the page
  • CREATE, UPDATE and DELETE permission grants a BO user the ability to modify some of the page content
@ghost ghost assigned MatShir May 2, 2019
@ghost ghost added the Help wanted Extra attention is needed label May 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants