-
-
Notifications
You must be signed in to change notification settings - Fork 236
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
The permission default_to_body doesn't affect updates #3317
Comments
See PR #3318 for a suggested fix based on the implementation for creating reports (the expressions added to report/update/form_user_loggedin.html were taken from report/new/form_user_loggedin.html). I would prefer to remove planned_reports from both places and just check default_to_body, but I'm guessing there's a reason it's there :-) |
"But shouldn't it be possible to let a user manage their shortlist and also default to creating reports/updates as themselves?" - yes, I guess this dates from before the second permission existed and everyone who had manage shortlist was also defaulting to that. I agree it would be better if they were independent; I'll do an audit of our staff data and see if that throws up any issues, but I assume we can manually fix if so. |
Looks like in our database we have 51 users with both planned_reports and default_to_body permissions, 122 users with default_to_body and not planned_reports, and |
Thanks @dracos ! So I can update the PR to remove the check of planned_reports, both for creating reports and updates? |
Yeah, why not! Do add a changelog entry too to show the change. |
Describe the bug
The description for the permission default_to_body is "Default to creating reports/updates as the council", but it only seems to be used when creating reports, not when posting updates.
When looking at the implementation for creating reports, I noticed that it defaults to creating as the council if the user is a staff user and has either planned_reports ("Manage shortlist") or default_to_body. This doesn't make sense to me, but I'll do the same for updates in my PR with a suggested fix. But shouldn't it be possible to let a user manage their shortlist and also default to creating reports/updates as themselves?
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: