-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Check permissions #57
Comments
While implementing the Team model i noticed a minor issues with the current kimaiAPI.h file: Is it fine if new API models would be implemented inside an api/models/ folder structure? Looking forward to sugesstions/opinions |
Also: We get all activities from the endpoint no matter if the user has permissions to book it or not, Do we hide it from the dropdown if the uses misses permissions or deactivate the button and display a info note/display it in a "Unavailable" tab in the dropdown? Otherwise we'd need to require the user to have the |
As Kimai API is pretty stable, this file is not changing often. Also this project is pretty small, so I am not sure it will have a real impact. However, test it and we will see :) |
I think it would be more easy to just hide what user cannot book. It then allow to focus only what user can change. |
Either i'm going crazy or Kimai changed something upstream? |
Also i can't find a convenient way to check for permissions apart from trying to launch invalid requests and checking for a 403. |
Ok I didn't really dig into roles/permissions API. It looks to be a bit limited as you said. So let this features aside for the moment. I will ask to kimai dev if fetching permissions from API is planned. |
Check for kimai's rights to ensure
The text was updated successfully, but these errors were encountered: