#7060 (Stewards should not have permission to create cal events)
by Luc Saffre · in Developers · assigned to Luc Saffre
Summary
Children
Comments
- 6 days, 15 hours ago by Luc Saffre about #7060 (Stewards should not have permission to create cal events) : I now pushed my changes (in lino, xl, book and welfare).
- 6 days, 15 hours ago by Luc Saffre about #7060 (Stewards should not have permission to create cal events) : The bitter pill is that documentation about these topics remains poor...
- 6 days, 15 hours ago by Luc Saffre about #7060 (Stewards should not have permission to create cal events) : I added a new method Actor.get_required_roles_for_action(), which I override in cal.Events and cal.Guests. This approach is much better than setting allow_create and allow_delete to True. Postitive side effect: also teachers in Avanti and 5xx users in Welfare can't insert and delete calendar entries...
- 6 days, 18 hours ago by Luc Saffre in reply to Luc Saffre about #7060 (Stewards should not have permission to create cal events) : My first attempt was to set allow_create and allow_delete to False on EventsByGuest and MyAttendances, but this is no full solution because (a) there might be other actors where I forgot to forbid it and (b) it might be disturbing that it's now forbidden in these actors for everybody.
- 6 days, 19 hours ago by Luc Saffre about #7060 (Stewards should not have permission to create cal events) (1 reply) : An interesting challenge: In Patrols we want to permit normal users to edit calendar events, but NOT insert and delete them.
- 1 week ago by Luc Saffre about #7060 (Stewards should not have permission to create cal events) : I did a hotpatch to fix it in three places, but maybe there is a better solution.
- 1 week ago by Luc Saffre about #7060 (Stewards should not have permission to create cal events) : They have a (+) in the Calendar tab on User preferences.
- 1 week ago by Luc Saffre about #7060 (Stewards should not have permission to create cal events) : Created new Ticket #7060 (Stewards should not have permission to create cal events).