-
Notifications
You must be signed in to change notification settings - Fork 174
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
[EEG Browser] User can access individual sessions for projects they are not involed in #6558
Comments
Hi @h-karim : is it fair to summarize this paragraph
as: There's something about your issue where it's not clear whether you're saying the project permissions aren't working as they should. |
if UserA has been granted permission to view all sites, UserA still cannot see pumpernickel data on the front page if pumpernickel is not assigned to UserA, however UserA can still access raw/all types URLs for pumpernickel sessions if UserA happens to have one. I am not sure whether the desirable behaviour is for UserA to not be able to access pumpernickel sessions, or for userA to be able to view pumpernickel data on the module front page. |
@christinerogers I've edited the issue description to better clarify the underlying issue, let me know if there's anything more to tweak. |
try getting the title down to one line. start by shortening to |
@ridz1208 Can you comment on whether this is expected behaviour? My assumption is that a user should only see data corresponding to the intersection of sites and projects. So if I am a user with ONLY access to Site However, another interpretation is that an "access all sites" permission really does mean all sites and overrides Project limitations. Which behaviour is intended? |
@johnsaigle I want to note the reason why I mentioned to grant the user "all sites" permission here is because of #6557 , making it impossible for now to test the scenario where the user is granted "view own site" permission and is affiliated with the correct site but not the individual project. However with the imaging module (#6618), the user can still access data from projects the user is not affiliated with, but is site affiliated with, if the user is given the "view own site" permission. So I don't think it's particularly related to the "view all sites" permission. |
Thanks for clarifying, that's helpful. So Project filtering is basically broken for these two modules. |
Project permissions/controls wer never added for (non-reactified) subpages for all modules that should now have Project permissions added. |
Fair enough. It's probably more accurate right now to say we have "Project filtering" rather than "Project permissions" in general. |
This was resolved after the merging of PR #6640 |
Context
Fails step A.2 of the test plan. Related to #6618
Describe the bug
A user can access individual sessions for a project that the user has not been assigned to if the user has a url from the 'raw' or 'all types' links or logically deduces the url.
To Reproduce
Steps to reproduce the behavior on the testing VM:
foo
with the following permission:foo
foo
's project assignment to any other project, make sure to exclude "pumpernickel"foo
foo
is able to access the individual session, despite not being assigned the pumpernickel project, and is now able to click on "next" and "Previous" to access all the data for project pumpernickel.What did you expect to happen?
For the user to have been denied access to the individual session when the user is not assigned the project covering the particular session
Browser Environment (please complete the following information):
Server Environment (if known):
This was done using the testing VM for loris
The text was updated successfully, but these errors were encountered: