Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

User with Editor role can't see private collection #96

Closed
julesies opened this issue Oct 4, 2017 · 10 comments
Closed

User with Editor role can't see private collection #96

julesies opened this issue Oct 4, 2017 · 10 comments

Comments

@julesies
Copy link
Collaborator

julesies commented Oct 4, 2017

Copied here to confirm when fixed. Originally reported by @VivianChu samvera/hyrax#1742

For Hyrax 2.0.0.beta1, User with Editor role can't see a private collection created by other Users.
For Hyrax 2.0.0.alpha, Editor user can see private collection fine.

Rationale

To have same editor function as previous hyrax version.

Expected behavior

Editor User can see private collection created by Admin or other Users.

Actual behavior

Editor User can't see private collection.

Steps to reproduce the behavior

Log in as admin
Create a new collection, select private visibility
Log out
Log in as editor
Go to Dashboard: Collections: All collections
Click on a new collection created by admin user
Should see message "You are not authorized to access this page"

@mjgiarlo
Copy link
Member

mjgiarlo commented Oct 4, 2017

samvera/hyrax#1742

@mjgiarlo
Copy link
Member

mjgiarlo commented Oct 4, 2017

Fixed by 436dab5

@mjgiarlo mjgiarlo closed this as completed Oct 4, 2017
@rjkati
Copy link

rjkati commented Oct 25, 2017

@mjgiarlo I just tested this functionality and it is not working as expected.

I created a private collection titled "Private Collection to Test Editor Visibility" and gave a test account editor access
access screen

When I log in with the test account, the collection does not display
nocollection

@julesies
Copy link
Collaborator Author

@mjgiarlo direct url access to the collection also doesn't display edit button.

@mjgiarlo
Copy link
Member

I've re-opened the Hyrax bug. thanks!

@elrayle
Copy link
Contributor

elrayle commented Oct 27, 2017

Hyrax 1.0 - 2.0.0.rc1

In Hyrax 2.0, you cannot see collections you did not create through Dashboard -> Collections -> Your Collections. I am fairly certain that has been the case for all releases (alpha - beta - rc) of Hyrax. In Sufia, you could see collections shared with you on the 'Shared with me' tab.

In your steps to reproduce, you reference the All Collections tab. That tab is only shown to admin users. Perhaps your expectation that this used to work in alpha was because the test was done with an editor who was also an admin user.

Hyrax collections-sprint branch

In collections-sprint branch, we have added an additional Managed Collections tab to Dashboard -> Collections. On that tab, you see collections for which you were granted :manage, :deposit, or :view access. Users will be able to view the admin show page for a collection if they have any of these access levels granted.

@elrayle
Copy link
Contributor

elrayle commented Oct 27, 2017

FYI... works have the same issue where there is no way to see works shared with you through Dashboard -> Works

FYI... There were previous discussions about incorporating Managed Collections and Managed Works into Hyrax 2.0 branch, but the consensus at the time was not to include it as it was too much new work and we were very close to a 2.0 release. This will be fixed in 2.1 when collections-sprint branch is merged into master.

laritakr pushed a commit to samvera/hyrax that referenced this issue Oct 27, 2017
Fixes samvera-labs/nurax-pre2023#96
With the refactoring of collection controllers to create two collection
show pages (public and dashboard), someone given editor rights to a
collection no longer has a way to get to the editing view.

This change adds the actions onto the public show page to restore this
feature until the collections sprint work is completed.
laritakr pushed a commit to samvera/hyrax that referenced this issue Oct 27, 2017
References samvera-labs/nurax-pre2023#96
Fixes #1742

With the refactoring of collection controllers to create two collection
show pages (public and dashboard), someone given editor rights to a
collection no longer has a way to get to the editing view.

This change adds the actions onto the public show page to restore this
feature until the collections sprint work is completed.
@mjgiarlo
Copy link
Member

mjgiarlo commented Oct 27, 2017

Fixed in Hyrax, and will be deployed to Nurax in 2-3 minutes. For more on the fix and related work coming soon, see @elrayle's comments ☝️.

@julesies
Copy link
Collaborator Author

@rjkati can you test this again? TY!

@rjkati
Copy link

rjkati commented Oct 31, 2017

@julesies Editing is now working as expected.

jcoyne pushed a commit to samvera/hyrax that referenced this issue Nov 6, 2017
References samvera-labs/nurax-pre2023#96
Fixes #1742

With the refactoring of collection controllers to create two collection
show pages (public and dashboard), someone given editor rights to a
collection no longer has a way to get to the editing view.

This change adds the actions onto the public show page to restore this
feature until the collections sprint work is completed.
jcoyne pushed a commit to samvera/hyrax that referenced this issue Nov 6, 2017
References samvera-labs/nurax-pre2023#96
Fixes #1742

With the refactoring of collection controllers to create two collection
show pages (public and dashboard), someone given editor rights to a
collection no longer has a way to get to the editing view.

This change adds the actions onto the public show page to restore this
feature until the collections sprint work is completed.
jcoyne pushed a commit to samvera/hyrax that referenced this issue Nov 9, 2017
References samvera-labs/nurax-pre2023#96
Fixes #1742

With the refactoring of collection controllers to create two collection
show pages (public and dashboard), someone given editor rights to a
collection no longer has a way to get to the editing view.

This change adds the actions onto the public show page to restore this
feature until the collections sprint work is completed.
jcoyne pushed a commit to samvera/hyrax that referenced this issue Nov 9, 2017
References samvera-labs/nurax-pre2023#96
Fixes #1742

With the refactoring of collection controllers to create two collection
show pages (public and dashboard), someone given editor rights to a
collection no longer has a way to get to the editing view.

This change adds the actions onto the public show page to restore this
feature until the collections sprint work is completed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants