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

External storage: Unneccesary menu entries #24937

Open
ne20002 opened this issue Jan 2, 2021 · 5 comments
Open

External storage: Unneccesary menu entries #24937

ne20002 opened this issue Jan 2, 2021 · 5 comments
Labels
1. to develop Accepted and waiting to be taken care of enhancement feature: external storage feature: settings good first issue Small tasks with clear documentation about how and in which place you need to fix things in.

Comments

@ne20002
Copy link

ne20002 commented Jan 2, 2021

Steps to reproduce

  1. I have the external storage app and use it to have the user data stored on an usb disk.
  2. I don't allow users to mount their own external storage

grafik

Expected behaviour

The users don't see the menu entries for external storage

Actual behaviour

Users have a menu entry for extenal storage, but they can't mount any external storage, it just displays an error message.

grafik

Server configuration

Operating system:
Raspbian OS
Web server:
Apache
Database:
mysql/mariadb
PHP version:
php-fpm 7.3
Nextcloud version: (see Nextcloud admin page)
20.0.4

@ne20002 ne20002 added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Jan 2, 2021
@kesselb
Copy link
Contributor

kesselb commented Jan 2, 2021

I don't consider this a bug. If the files_external app is enabled the menu item is registered.

The users don't see the menu entries for external storage

To achieve this each time the menu is generated we need to check if the current user is allowed to mount external storages or if there is an external storage using global credentials.

it just displays an error message.

And your users are confused about this one? We may improved the wording and yeah it looks a bit weird.

image

I think we can improve the look a bit if we add the above part also to the error view and make the error message a bit more explaining. cc @jancborchardt

@kesselb kesselb added the good first issue Small tasks with clear documentation about how and in which place you need to fix things in. label Jan 2, 2021
@ne20002
Copy link
Author

ne20002 commented Jan 4, 2021

I see this as two elements

  • the admin page (the first picture)
  • the users page (second picture)

It's also seperated like this for the admin. If the checkbox 'Benutzern erlauben, externen Speicher einzubinden' is not selected, the second one should not appear. It's not a user specific configuration.
It should be ok to check this once on session start. Even if the admin allows this during a user session, it would be sufficiant to have this on the next login only.

Or mayby it may be seen like two seperate apps. Like is an admin adds or removes an app. That's where the menu entry needs to be checked only.

@kesselb
Copy link
Contributor

kesselb commented Jan 4, 2021

If the checkbox 'Benutzern erlauben, externen Speicher einzubinden' is not selected, the second one should not appear.

Why not?

@ne20002
Copy link
Author

ne20002 commented Jan 6, 2021

Ain't it useless? What sense would it make to display only an error message and a useless option to enter credentials to be used for ... nothing?

@kesselb kesselb added enhancement 1. to develop Accepted and waiting to be taken care of and removed bug 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Jan 6, 2021
@kesselb
Copy link
Contributor

kesselb commented Jan 6, 2021

Good first issue Design changes: #24937 (comment)

Fine by me to hide the external storage app for users if the current user is not allowed to mount external storages and there is no external storage (the user has access to) using global credentials. Pull requests are always welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of enhancement feature: external storage feature: settings good first issue Small tasks with clear documentation about how and in which place you need to fix things in.
Projects
None yet
Development

No branches or pull requests

3 participants