Skip to content

Hide external storage app if the current user is not allowed to mount and has no access to any #24937

Closed

Description

@ne20002

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

Activity

  1. added
    0. Needs triagePending check for reproducibility or if it fits our roadmap
    on Jan 2, 2021
  2. kesselb commented on Jan 2, 2021

    @kesselb
    Contributor

    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

  3. added
    good first issueSmall tasks with clear documentation about how and in which place you need to fix things in.
    on Jan 2, 2021
  4. ne20002 commented on Jan 4, 2021

    @ne20002
    Author

    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.

  5. kesselb commented on Jan 4, 2021

    @kesselb
    Contributor

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

    Why not?

  6. ne20002 commented on Jan 6, 2021

    @ne20002
    Author

    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?

  7. added
    1. to developAccepted and waiting to be taken care of
    and removed
    0. Needs triagePending check for reproducibility or if it fits our roadmap
    on Jan 6, 2021
  8. kesselb commented on Jan 6, 2021

    @kesselb
    Contributor

    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.

  9. changed the title [-]External storage: Unneccesary menu entries[/-] [+]Hide external storage app for users if the current user is not allowed to mount and has no access to any mounts[/+] on Sep 8, 2024
  10. changed the title [-]Hide external storage app for users if the current user is not allowed to mount and has no access to any mounts[/-] [+]Hide external storage app if the current user is not allowed to mount and has no access to any[/+] on Nov 22, 2024
  11. tim-van-dijkhuizen commented on Sep 6, 2025

    @tim-van-dijkhuizen

    +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions