-
Notifications
You must be signed in to change notification settings - Fork 140
Don't show the Team new form if a user is not allowed to create one. #1003
Comments
This is already solved in 6e7d601 . Do we agree that we want the new behaviour? |
I like the new behavior 👍 especially hiding the buttons for people who shouldn't be able to use them. |
Yes, thank you @F3PiX I think this is fantastic! |
Great! I'd even ditch the last TODO ("Add a meaningful message for unauthorised access"). With the button no longer being visible, users ending up as unauthorized either hit the URL manually, had an old tab open, etc. which I'd all consider as edge cases where the app does not necessarily need to provide more information 😉 So it's a nice to have, but not super relevant for getting the abilities back up to speed now. For a student not being a coach in the same season: it looks like this is more of a "why would anyone want this", rather than an explicit restriction in the guides and the code. As far as I can see, this won't impact the duties the Teams App is doing for the program at all, so I'd again not care about this edge case. |
So happy with y'all's feedback! 🙇 I'll keep a note of the message and close this issue 💃 |
Came up in #997 (Abilities)
OLD behaviour: when I logged in as a student in an accepted team in current season,
Visit '/teams/
NEW behaviour:
When a user is not allowed to create a new team (for instance, a student is not allowed to create a new team in the same season):
a) the button 'Create a new team' is hidden
b) cancancan will not allow access to the new Team form.
DONE in #997: fix cancancan implementation for creating a second team as a student
TODO
The text was updated successfully, but these errors were encountered: