Skip to content
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

Roles with lesser permissions cannot see any shared courses #2266

Closed
tomgreenfield opened this issue Mar 6, 2019 · 9 comments
Closed

Roles with lesser permissions cannot see any shared courses #2266

tomgreenfield opened this issue Mar 6, 2019 · 9 comments
Assignees
Labels
I: critical High impact bugs, breaking functionality for the end-user - should be fixed ASAP S: merged Completed, reviewed, and merged issues T: bug

Comments

@tomgreenfield
Copy link
Contributor

Expected Behaviour

All roles can see courses shared with everyone.

Actual Behaviour

Roles other than Super Admin and Tenant Admin cannot see any shared courses.

Front end error received:

jquery.js:9659 GET http://localhost:5000/api/shared/course?search%5Btitle%5D=.*.*&operators%5Bskip%5D=0&operators%5Blimit%5D=1&operators%5Bsort%5D%5Btitle%5D=1 500 (Internal Server Error)

Steps to Reproduce

  1. Share a course with all users
  2. Log in as an authenticated user and navigate to the shared courses page

Versions

  • Authoring Tool Version: 0.7.0
  • Node.js Version: 10
  • MongoDB Version: 3.2
@tomgreenfield tomgreenfield added T: bug I: critical High impact bugs, breaking functionality for the end-user - should be fixed ASAP labels Mar 6, 2019
@tomgreenfield tomgreenfield added this to the 0.7.0 Loose ends milestone Mar 6, 2019
@canstudios-nicolaw
Copy link
Contributor

@tomgreenfield Are you looking into this or would you like me to pick it up?

@tomgreenfield
Copy link
Contributor Author

Feel free to dive in. Thanks, @canstudios-nicolaw.

@canstudios-nicolaw
Copy link
Contributor

👍 I'll start looking at this now

@canstudios-nicolaw
Copy link
Contributor

@tomgreenfield I don't seem to be able to reproduce this.

I have logged in as a super admin, created a course, shared it with everyone (it isn't shared with any individuals), and logged out. I can then log in as a course creator or authenticated user and see the course on the shared courses dashboard and preview it.

As a product manager I can see the course on the shared courses dashboard but I can't preview it (I'm not sure if this is a regression).

I am on the release/0.7.0 branch of the authoring tool, and the issue/2345-legacy branch of the framework. Please could you provide some more details as to how you are reproducing this?

@tomgreenfield
Copy link
Contributor Author

Can replicate consistently with the same branches.

@taylortom, can you shed any light?

@canstudios-nicolaw
Copy link
Contributor

Is there any useful information in the logs?

I had a permissions issue looking at the shared dashboard when I had an old course floating around with a different tenant id, there is no chance you could have something like that?

@taylortom
Copy link
Member

I could replicate this one yesterday, will have another test.

@tomgreenfield
Copy link
Contributor Author

@canstudios-nicolaw, to replicate, ensure at least one course is shared with all users and shared with a defined user different to the authenticated user.

@canstudios-nicolaw
Copy link
Contributor

I've got a fix for this but it's going to be in the PR for #2271 as I came across this issue when testing that PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I: critical High impact bugs, breaking functionality for the end-user - should be fixed ASAP S: merged Completed, reviewed, and merged issues T: bug
Projects
None yet
Development

No branches or pull requests

3 participants