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

Refactor the dashboard to work with different roles #126

Open
troccoli opened this issue Jun 13, 2020 · 0 comments
Open

Refactor the dashboard to work with different roles #126

troccoli opened this issue Jun 13, 2020 · 0 comments
Assignees

Comments

@troccoli
Copy link
Owner

The Dashboard and all the various CRUD screens need to check if the logged-in user can do the operations. This is not only for the whole page, but for the operations of the specific items in the list.

For example, if there are two seasons and I am logged in as Season 1 Administrator, then in the Seasons screen I will see both seasons but the buttons to see the competitions, edit and delete season 2 will be disabled, as I don't have permissions. Also the button to delete season 1 will be disabled too, again as I don't have permission.

If I am logged in as Competition 1 Administrator, where the competition is in season 1, then in the Seasons screen I will only see season 1, with the edit and delete button disabled. And when I click on the competitions button I will see all competitions, but only the buttons to see the divisions and edit competitions 1 will be enabled, as those are the only permissions I have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant