-
Notifications
You must be signed in to change notification settings - Fork 168
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
Hide new public link share button if user lacks permissions #5126
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
5701b4a
to
e5b3b10
Compare
@pascalwengerter What do you think about disabling the button instead, when the user doesn't have share permissions? |
No clear preference since we'll be updating this component soon anyways, let me know if I should update this to disable the button! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right that we're changing it anyway. But could you do the same approach as in the FileSharingSidebar.vue
component? That one has a noResharePermsMessage
computed prop which is displayed instead of the button when resharing is not allowed.
Good idea. I'll however pause this PR in favor of the swarming branch since both touch the |
We'll rebase this one to |
e5b3b10
to
60afb29
Compare
7e9d086
to
cd7db04
Compare
60afb29
to
0e85f39
Compare
💥 Acceptance tests webUINotificationBasic failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/web/15729/
webUINotifications-displayNotificationsOnWebUI-feature-18.png |
💥 Visual regression tests webUIOCISFiles3 failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/web/15729/
|
💥 Acceptance tests TrashbinDelete failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/web/15729/
webUITrashbinDelete-trashbinDelete-feature-113.pngwebUITrashbinDelete-trashbinDelete-feature-29.pngwebUITrashbinDelete-trashbinDelete-feature-42.png |
💥 Acceptance tests MarkdownEditor failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/web/15729/
webUIMarkdownEditor-markdownFile-feature-62.pngwebUIMarkdownEditor-markdownFile-feature-63.png |
💥 Acceptance tests TrashbinFilesFolders failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/web/15729/
webUITrashbinFilesFolders-trashbinFilesFolders-feature-23.pngwebUITrashbinFilesFolders-trashbinFilesFolders-feature-38.pngwebUITrashbinFilesFolders-trashbinFilesFolders-feature-82.pngwebUITrashbinFilesFolders-trashbinFilesFolders-feature-97.png |
💥 Acceptance tests SharingPublicDifferentRoles failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/web/15729/
webUISharingPublicDifferentRoles-shareByPublicLinkDifferentRoles-feature-114.pngwebUISharingPublicDifferentRoles-shareByPublicLinkDifferentRoles-feature-93.png |
💥 Acceptance tests SharingPublicExpire failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/web/15729/
webUISharingPublicExpire-shareByPublicLinkExpiringLinks-feature-106.pngwebUISharingPublicExpire-shareByPublicLinkExpiringLinks-feature-11.pngwebUISharingPublicExpire-shareByPublicLinkExpiringLinks-feature-147.pngwebUISharingPublicExpire-shareByPublicLinkExpiringLinks-feature-24.pngwebUISharingPublicExpire-shareByPublicLinkExpiringLinks-feature-86.png |
💥 Acceptance tests oc10-integration-notifications failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/web/15729/
webUISharingNotifications-shareWithUsers-feature-21.pngwebUISharingNotifications-shareWithUsers-feature-32.pngwebUISharingNotifications-shareWithUsers-feature-40.pngwebUISharingNotifications-shareWithUsers-feature-53.pngwebUISharingNotificationsToRoot-shareWithUsers-feature-19.pngwebUISharingNotificationsToRoot-shareWithUsers-feature-31.pngwebUISharingNotificationsToRoot-shareWithUsers-feature-40.pngwebUISharingNotificationsToRoot-shareWithUsers-feature-53.png |
💥 Acceptance tests TrashbinRestore failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/web/15729/
webUITrashbinRestore-trashbinRestore-feature-138.pngwebUITrashbinRestore-trashbinRestore-feature-14.pngwebUITrashbinRestore-trashbinRestore-feature-181.pngwebUITrashbinRestore-trashbinRestore-feature-222.pngwebUITrashbinRestore-trashbinRestore-feature-241.pngwebUITrashbinRestore-trashbinRestore-feature-260.pngwebUITrashbinRestore-trashbinRestore-feature-30.png |
💥 Acceptance tests Upload failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/web/15729/
webUIUpload-upload-feature-130.pngwebUIUpload-upload-feature-151.pngwebUIUpload-upload-feature-89.pngwebUIUpload-upload-feature-98.pngwebUIUpload-uploadEdgecases-feature-109.png |
💥 Acceptance tests ResharingToRoot failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/web/15729/
webUIResharingToRoot-reshareUsers-feature-227.png |
💥 Acceptance tests SharingInternalUsersExpire failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/web/15729/
webUISharingInternalUsersExpire-shareWithUsersExpiringShares-feature-104.pngwebUISharingInternalUsersExpire-shareWithUsersExpiringShares-feature-105.pngwebUISharingInternalUsersExpire-shareWithUsersExpiringShares-feature-108.pngwebUISharingInternalUsersExpire-shareWithUsersExpiringShares-feature-134.pngwebUISharingInternalUsersExpire-shareWithUsersExpiringShares-feature-211.pngwebUISharingInternalUsersExpire-shareWithUsersExpiringShares-feature-240.pngwebUISharingInternalUsersExpire-shareWithUsersExpiringShares-feature-34.png |
💥 Acceptance tests SharingInternalUsersExpireToRoot failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/web/15729/
webUISharingInternalUsersExpireToRoot-shareWithUsersExpiringShares-feature-100.pngwebUISharingInternalUsersExpireToRoot-shareWithUsersExpiringShares-feature-126.pngwebUISharingInternalUsersExpireToRoot-shareWithUsersExpiringShares-feature-203.pngwebUISharingInternalUsersExpireToRoot-shareWithUsersExpiringShares-feature-232.pngwebUISharingInternalUsersExpireToRoot-shareWithUsersExpiringShares-feature-30.pngwebUISharingInternalUsersExpireToRoot-shareWithUsersExpiringShares-feature-96.pngwebUISharingInternalUsersExpireToRoot-shareWithUsersExpiringShares-feature-97.png |
💥 Acceptance tests SharingPublicManagement failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/web/15729/
webUISharingPublicManagement-publicLinkIndicator-feature-110.pngwebUISharingPublicManagement-shareByPublicLink-feature-102.pngwebUISharingPublicManagement-shareByPublicLink-feature-12.pngwebUISharingPublicManagement-shareByPublicLink-feature-146.pngwebUISharingPublicManagement-shareByPublicLink-feature-201.pngwebUISharingPublicManagement-shareByPublicLink-feature-64.pngwebUISharingPublicManagement-shareByPublicLink-feature-90.png |
💥 Acceptance tests webUIResharing failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/web/15729/
webUIResharing1-reshareUsers-feature-230.png |
💥 Acceptance tests webUISharingNotifications failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/web/15729/
webUISharingNotifications-shareWithGroups-feature-24.pngwebUISharingNotifications-shareWithUsers-feature-21.pngwebUISharingNotifications-shareWithUsers-feature-32.pngwebUISharingNotifications-shareWithUsers-feature-40.pngwebUISharingNotifications-shareWithUsers-feature-53.pngwebUISharingNotificationsToRoot-shareWithGroups-feature-24.pngwebUISharingNotificationsToRoot-shareWithUsers-feature-19.pngwebUISharingNotificationsToRoot-shareWithUsers-feature-31.pngwebUISharingNotificationsToRoot-shareWithUsers-feature-40.pngwebUISharingNotificationsToRoot-shareWithUsers-feature-53.png |
💥 Acceptance tests webUISharingInternalUsersRoot2 failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/web/15729/
webUISharingInternalUsersToRootCollaborator-shareWithUsers-feature-109.pngwebUISharingInternalUsersToRootShareWithPage-shareWithUsers-feature-26.pngwebUISharingInternalUsersToRootShareWithPage-shareWithUsers-feature-52.pngwebUISharingInternalUsersToRootShareWithPage-shareWithUsers-feature-61.pngwebUISharingInternalUsersToRootShareWithPage-shareWithUsers-feature-70.pngwebUISharingInternalUsersToRootShareWithPage-shareWithUsers-feature-79.pngwebUISharingInternalUsersToRootShareWithPage-shareWithUsers-feature-96.png |
💥 Acceptance tests webUISharingInternalUsersRoot1 failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/web/15729/
webUISharingInternalUsersToRoot-shareWithUsers-feature-103.pngwebUISharingInternalUsersToRoot-shareWithUsers-feature-275.pngwebUISharingInternalUsersToRoot-shareWithUsers-feature-57.pngwebUISharingInternalUsersToRoot-shareWithUsers-feature-74.png |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Description
Hides "Create public link" button if user has insufficient share permissions. Debatable if we should only hide the "Create" button and if users with e.g. view/edit rights should be at least displayed links (even if they can't edit/create/delete them)
Related Issue