#4573 (User type 400 in Jane can't mark a ticket as done)
by Luc Saffre · in Developers · assigned to Luc Saffre
Kokkuvõte
Children
Kommentaarid
- 4 aastat, 2 kuud ago by Luc Saffre about #4573 (User type 400 in Jane can't mark a ticket as done) : Hannes, you should now be able to mark tickets in your to-do list as "done" or "talk" even when somebody else created them (because I changed your user type from 400 to 900).
- 4 aastat, 3 kuud ago by Luc Saffre about #4573 (User type 400 in Jane can't mark a ticket as done) : Actually all this was already [url dev.lino-framework.org/dev/actions.html#lino.core.actions.Action.readonly documented quite well]. I added this example to the developer doc.
- 4 aastat, 3 kuud ago by Luc Saffre about #4573 (User type 400 in Jane can't mark a ticket as done) : No no, setting TicketAction.readonly to True seems to perfectly fix our issue. The get_action_permission() is executed (i.e. you need to be a Triager, and the project field may not be empty).
- 4 aastat, 3 kuud ago by Luc Saffre about #4573 (User type 400 in Jane can't mark a ticket as done) : Setting TicketAction.readonly to True in the noi workflows would be a practical solution, but I guess that even anonymous users would then be able to change the state of a ticket. That's not what we want.
- 4 aastat, 3 kuud ago by Luc Saffre about #4573 (User type 400 in Jane can't mark a ticket as done) : More precisely a Developer (user_type 400) can change the state of a ticket for their own tickets (author == me) but not for those of other users. If we really want to say that a developer should be able to change the state of any ticket, a quick pragmatic solution is to set lino_xl.lib.tickets.work...