Problem/Motivation
Unassigned not manager users must not be able to view or update task Items.
Right now an unassigned regular translator user is able to translate a task item not assigned to him just typing the url.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | interdiff-unassigned_not_manager-2688939-5-7.txt | 9.46 KB | edurenye |
| #7 | unassigned_not_manager-2688939-7.patch | 4.7 KB | edurenye |
| #5 | unassigned_not_manager-2688939-5.patch | 3.99 KB | edurenye |
| #2 | unassigned_not_manager-2688939-2.patch | 2.12 KB | edurenye |
Comments
Comment #2
edurenye commentedTest only, to show how bad this is.
Comment #4
edurenye commentedJust with task items, otherwise we cannot assign it to ourselves.
Also maybe for a followup, inside a task a user should be able to assign an unassigned task to himself.
Comment #5
edurenye commentedFixed the problem, changed the test according to the new issue details.
Also now I just let the admin or the manager to change the title, as if a translator changes the title could give wrong information to the manager.
Comment #6
berdirNice catch.
This looks like a widget, then you can do this in the access control handler, see \Drupal\node\NodeAccessControlHandler::checkFieldAccess as an example
Comment #7
edurenye commentedDone.
Comment #8
berdirDo we really limit edit to *all* fields for edit?
Comment #10
berdirDiscusssed, OK for now.