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

[spaces] Hide link sharing option if not allowed #8701

Closed
hurradieweltgehtunter opened this issue Mar 24, 2023 · 9 comments · Fixed by #8820
Closed

[spaces] Hide link sharing option if not allowed #8701

hurradieweltgehtunter opened this issue Mar 24, 2023 · 9 comments · Fixed by #8820
Assignees
Labels

Comments

@hurradieweltgehtunter
Copy link
Contributor

Steps to reproduce

  1. Enter space where you are a member with role “Viewer”

Expected behavior

According to our guidelines on owncloud.design non-available options should be hidden.
Therefore, the area “Share via Link” should be hidden for users who do not have this permission.

grafik

Actual behavior

The option is shown as disabled.

grafik

@JammingBen
Copy link
Contributor

Not quite sure here because existing links would be displayed in that section as well. Do we really want to hide the section when no links given? The same applies to regular shared resources when the share receiver doesn't have the permission to create links.

@hurradieweltgehtunter
Copy link
Contributor Author

grafik

Ok, this is unexpected.
My point of view: Why can I copy and forward a sharing link but above it reads "I am not allowed to share this folder" ?
Isn't that contradictory

@JammingBen
Copy link
Contributor

The text only refers to the permission for creating links, but I totally agree that this is confusing as it is. Maybe change the text to You don't have permission to create links for this folder.? Again, I'm not a fan of hiding this section, because it could give the impression that this resource can't have links at all. @tbsbdr Any opinions on this?

@hurradieweltgehtunter
Copy link
Contributor Author

I wasn't aware (and didn't expect) of having sharing links if I am a viewer without sharing permission.
But since the viewer permission should grant only "view" and not "re-share" they shouldn't be visible IMO.
Let's spawn @tbsbdr :)

@kulmann
Copy link
Member

kulmann commented Mar 29, 2023

Same opinion like @JammingBen about hiding the panel entirely: if link sharing is allowed at all (controlled via capability) the user expects to have the links panel available. If that's missing, in my experience that typically causes bug reports like "bug! bug! my link sharing panel is missing!".

Also agree that the text is misleading. We need to change the wording.

From what I know existing links should be available. "resharing" is only a feature for regular shares with users/groups. But I get that this is not 100% expected. I'd keep it like it is and only change the wording. Open for different opinions.

@tbsbdr
Copy link
Contributor

tbsbdr commented Mar 29, 2023

yep, I'd favour a re-wording as well as long we have not reworked the sharing & links section.
Wording proposal:
"You can use existing links, but you do not have permission to create links." any objections?

@hurradieweltgehtunter
Copy link
Contributor Author

hurradieweltgehtunter commented Mar 29, 2023

If that's missing, in my experience that typically causes bug reports like "bug! bug! my link sharing panel is missing!".

If that's our perception, wouldn't mean that we need to update our design guidelines? From https://owncloud.design/#/Interface%20Guidelines :

Choose hiding over disabling interactive elements

Under normal circumstances and apart from "Save" actions it is good practice to not disable elements that are not accessible to a user (for example due to a lack of role privileges on their account), but to hide irrelevant controls altogether.

I get mixed feelings here :)

"You can use existing links, but you do not have permission to create links." any objections?

You do not have permission to create links would be sufficient IMO. Allowance of existing links is self-explanatory.

@kulmann
Copy link
Member

kulmann commented Mar 29, 2023

If that's missing, in my experience that typically causes bug reports like "bug! bug! my link sharing panel is missing!".

If that's our perception, wouldn't mean that we need to update our design guidelines? From https://owncloud.design/#/Interface%20Guidelines :

Choose hiding over disabling interactive elements

Under normal circumstances and apart from "Save" actions it is good practice to not disable elements that are not accessible to a user (for example due to a lack of role privileges on their account), but to hide irrelevant controls altogether.

I don't know if such a design principle makes sense at all - IMO the answer to that particular detail is always "it depends".

@kulmann
Copy link
Member

kulmann commented Mar 29, 2023

You do not have permission to create links would be sufficient IMO. Allowance of existing links is self-explanatory.

Fine by me, let's do that :-)

@kulmann kulmann added the Topic:good-first-issue beginner friendly task label Mar 29, 2023
@lookacat lookacat self-assigned this Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants