-
Notifications
You must be signed in to change notification settings - Fork 455
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
[GDPR] | Invite to a role - Removing Role, with access to settings does not remove all attributes of the previous role #11015
Comments
I just tested this as Dbarnes and found that I cannot see anything. However, despite not accepting the role of Production Editor, I can still access the Dashboard from the dropdown and then shown the profile, which seems inconsistent. If a user has no assigned role—not even as a reader—and has not accepted any role, they should not be shown the dashboard. This behavior needs to be reviewed. |
@Tribunal33 @Devika008 there is a check in the code. The navigation URL will be change according to the user roles. I will not going to change this until reviewed this |
@ipula, a check to see if a role is active should be performed higher up the chain here: pkp-lib/classes/security/authorization/UserRolesRequiredPolicy.php Lines 57 to 60 in 13c78ad
and can be done so with ->withUserUserGroupStatus('active') @asmecher, does this make sense to put this additional constraint on the role check in the policy here? |
Note: this will also need to be forwarded ported to |
@ewhanson Somehow it returns the all user groups. I have to do some small changes. now Authorization works fine
|
Hey @ipula, could you share some more details about what returns all user groups? When I tested the change I mentioned, it worked as expected and only checked the active user groups with the scope method on the model. |
Its return the same user groups even I use |
Hi @Tribunal33 This change was implemented here and can be tested. https://github.com/ipula/pkp- |
@withanage Don't know if this is related, but I'm not able to see any of the submissions now for any of the roles. Getting a console error. |
@Tribunal33 this does not seem to be related to the GDOR inviation or user roles. |
Valid Title
Description
When removing a Journal Editor role but I think it might be for all roles. There are traces of the role left over. I will go over the easiest to identify but I'm worried this might mean that the database tables for removed role are not fully being flushed correctly. Easiest way to see this is with the Journal Editor role from Dbarnes.
I think this works for removing role either when inviting to a new role or from existing user table. I will focus on when inviting to a new role.
Steps to Reproduce
Expected Result
Should not be able to view the settings navigation options unless you have access to that.
Actual Result
Can access the settings options and
Environment Details
No response
Application Version
OJS stable-3_5_0
Logs
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: