Content
View differences
Updated by Marc Alcobé 7 months ago
### Steps to reproduce
1. Login as a user without 'Log own time' permission
2. Go to OP homepage
### What is the buggy behaviour?
* User can see, add and use 'Time tracker' and Week time tracking' homepage widgets
### What is the expected behaviour?
Follow this cases for all the options of permissions:
1. User has both permissions to view own time cannot see, add and log time: We show both widgets (if active) use 'Time tracker' and the Week time tracking module with all features enabled.
2. User has a permission to view own time, but no permission to log time: Show just `Week view` (without log time button) and hide `Time tracker`. This user should also see the time tracking module, but has no actions to log time or start a timer.
3. User has a permission to log time, but no permission to view own time: This doesn't make too much sense from a UX standing point, I don't even know if it is possible. But if yes, I would suggest we show the `Time tracker` and hide the `Week view` widget. The time tracking module should be completely hidden, and the user can only log time or start a timer through the three dots menu on the work package view.
4. User has no permissions to view own time and log time: We hide both tracking' homepage widgets and the time tracking module completely, including actions from more menu in work package detail view.
###
### Screenshots and other files
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/792426/content">
###
**OpenProject version**
v1.9.0-alpha (540)
**Operating System**
* [ ] Mobile iOS
* [x] Mobile Android 15/Galaxy S24
1. Login as a user without 'Log own time' permission
2. Go to OP homepage
### What is the buggy behaviour?
* User can see, add and use 'Time tracker' and Week time tracking' homepage widgets
### What is the expected behaviour?
Follow this cases for all the options of permissions:
1. User has both permissions to view own time
2. User has a permission to view own time, but no permission to log time: Show just `Week view` (without log time button) and hide `Time tracker`. This user should also see the time tracking module, but has no actions to log time or start a timer.
3. User has a permission to log time, but no permission to view own time: This doesn't make too much sense from a UX standing point, I don't even know if it is possible. But if yes, I would suggest we show the `Time tracker` and hide the `Week view` widget. The time tracking module should be completely hidden, and the user can only log time or start a timer through the three dots menu on the work package view.
4. User has no permissions to view own time and log time: We hide both
###
### Screenshots and other files
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/792426/content">
###
**OpenProject version**
v1.9.0-alpha (540)
**Operating System**
* [ ] Mobile iOS
* [x] Mobile Android 15/Galaxy S24