Skip to content

Show reason why group restriction not possible for that app #4864

Description

@MorrisJobke

Papercut from #2672

cc @eppfel @MariusBluem because you always asked for this

Activity

  1. wiswedel commented on May 27, 2019

    @wiswedel
    Contributor

    @MorrisJobke Is this still of interest or can it be closed? Can't there be several reasons - none of them giving the reader any practical benefit?

  2. MorrisJobke commented on May 27, 2019

    @MorrisJobke
    MemberAuthor

    Can't there be several reasons - none of them giving the reader any practical benefit?

    Yes there can be different and it would be helpful to communicate why given features are not there IMO.

  3. ghost closed this as completedon Jun 12, 2019
  4. ghost removed
    staleTicket or PR with no recent activity
    on Jun 12, 2019
  5. szaimen commented on May 21, 2021

    @szaimen
  6. joshtrichards commented on Sep 23, 2024

    @joshtrichards
    Member

    I suppose these are the reasons:

    canLimitToGroups(app) {
    if ((app.types && app.types.includes('filesystem'))
    || app.types.includes('prelogin')
    || app.types.includes('authentication')
    || app.types.includes('logging')
    || app.types.includes('prevent_group_restriction')) {
    return false
    }
    return true

    <div v-if="app.active && canLimitToGroups(app)" class="app-details__actions-groups">

    * Apps with these types can not be enabled for certain groups only
    * @var string[]
    */
    protected $protectedAppTypes = [
    'filesystem',
    'prelogin',
    'authentication',
    'logging',
    'prevent_group_restriction',
    ];

    Apps this applies to:

    https://github.com/search?q=org%3Anextcloud+path%3A%2F%28%5E%7C%5C%2F%29info%5C.xml%24%2F+filesystem+OR+prelogin+OR+authentication+OR+logging+OR+prevent_group_restrictions&type=code

    For many (most?) of these it's somewhat obvious why they can't be limited. But I can see how a few might be surprising (e.g. Collectives, Photos, Maps, Community Document Server, Office Online, Activity).

  7. added
    good first issueSmall tasks with clear documentation about how and in which place you need to fix things in.
    on Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    1. to developAccepted and waiting to be taken care ofenhancementfeature: apps managementgood first issueSmall tasks with clear documentation about how and in which place you need to fix things in.papercutAnnoying recurring UX issue with possibly simple fix.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions