-
Notifications
You must be signed in to change notification settings - Fork 451
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
Accessing user notification settings from the site throws a fatal error #8592
Comments
Confirmed on |
Looking at We now have a foreign key on the It is only possible to access the user profile at the site level for users who have roles in more than one journal. So if the user lands on this page, it is because they have roles in more than one journal. I think there are two things to do:
@asmecher just want to run this plan by you. Does this sound right to you? |
I would also be game to have the |
That was much easier, so I've done that. The |
#8592 Fix site-wide notification subscriptions form
pkp/pkp-lib#8592 Fix site-wide notification subscriptions form
pkp/pkp-lib#8592 Fix site-wide notification subscriptions form
pkp/pkp-lib#8592 Fix site-wide notification subscriptions form
Thanks all, merged to |
I'll reopen this one, the migration to setup the field with null was added (I8592_SiteNotificationSubscriptions), but the migration that creates the table is still the same. Therefore, the migration will need to be re-run at > 3.4. |
@jonasraoni, actually, could you open a new issue for the new part of this? Since the initial fix already went out in 3.4.0, I'd rather not change the milestone on this to 3.5.0 and lose that history. |
I was thinking about it, so I'll proceed 😁 |
…otificationSubscriptions
…4 installations have the proper nullability
…sionProgressType migration, in order to be re-executed and added helpful comments to the file.
…92-fix-notification_subscription_settings-integrity##
…4 installations have the proper nullability
…92-fix-notification_subscription_settings-integrity##
…4 installations have the proper nullability
…92-fix-notification_subscription_settings-integrity##
…4 installations have the proper nullability
…92-fix-notification_subscription_settings-integrity##
…otificationSubscriptions (cherry picked from commit 1f26efa)
(cherry picked from commit cb168c1)
…4 installations have the proper nullability (cherry picked from commit d47004f)
…sionProgressType migration, in order to be re-executed and added helpful comments to the file. (cherry picked from commit 583010a)
…otification_subscription_settings-integrity##
…4 installations have the proper nullability (cherry picked from commit 49f92ae)
…otification_subscription_settings-integrity##
…4 installations have the proper nullability (cherry picked from commit e3b0c97)
…otification_subscription_settings-integrity##
…otification_subscription_settings-integrity##
…x-notification_subscription_settings-integrity #8592 Updated field nullability to match the migration I85…
…cation_subscription_settings-integrity #8592 Updated field nullability to match the migration I85…
…otificationSubscriptions
Describe the bug
When 2 or more journals are installed, site settings page becomes accessible to the admin user. That means that the admin user can edit own user profile from the site, without context being available. This leads to a fatal error when trying to view notification settings as they are bound to the context
To Reproduce
Steps to reproduce the behavior:
What application are you using?
OJS main branch. Stable branch also needs testing
Additional information
As it affects only users with an admin role and we don't have site-level notification settings, I'd probably just avoid loading notifications settings in this case, when context isn't available. Another option could be to display the settings for each journal, the same way as it's done for Roles.
PRs regarding issue reopening
The text was updated successfully, but these errors were encountered: