Issue Bug Closed

#95344Backend admins that also have groups assigned see the full page tree AND(!) the mount points

S P 09/24/21, 08:07 updated 10/18/26, 13:40

Description

Steps to reproduce:

  • Create a non-admin backend user with some groups that have do_mountpoints . This user sees these mountpoints. Fine.
  • Now make this user an admin without removing his groups: The user will have the full page tree and the stripped-down page tree from the groups.

If a user is admin the db_mountpoints evaluation should not happen at all (for a clean pagetree and for performance reasons).

Discovered on v9, but probably valid also on later versions.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Files 1

History 17

  1. S P changed subject Backend admins that also have groups assigned see the full page tree and the mount points Backend admins that also have groups assigned see the full page tree AND(!) the mount points <span data-processor="relativetime" data-value="2021-10-20T06:30:09+00:00" > 10/20/21, 06:30 </span>

  2. Benni Mack commented and changed status New Needs Feedback <span data-processor="relativetime" data-value="2021-10-20T17:36:31+00:00" > 10/20/21, 17:36 </span>

    There is an option to do it in the reverse, as this is a “known issue” (let’s call it “feature”, as some think this is a good idea https://docs.typo3.org/m/typo3/reference-tsconfig/master/en-us/UserTsconfig/Options.html#dontmountadminmounts). So what would you see as expected behaviour?

  3. S P commented <span data-processor="relativetime" data-value="2021-10-21T05:51:27+00:00" > 10/21/21, 05:51 </span>

    Benni Mack wrote in #note-3:
    > So what would you see as expected behaviour?

    That an admin either sees the root or the mounts from the groups. So that never the mounts and the root are shown alongside .

    dontMountAdminMounts option allows the inverse of my suggested change. The correct bahviour IMHO would be (pseudo-code):

    if(isAdmin && !dontMountAdminMounts) {
      // render ONLY root - this case is missing currently
    } else
      // render ONLY db_mountpoints in any other case (non-admin or dontMountAdminMounts = true)
    }

    Optionally, add a new setting that allows specifying whether admins see only the mounts, only the root or explicitly both.

  4. S P commented <span data-processor="relativetime" data-value="2021-10-21T05:57:32+00:00" > 10/21/21, 05:57 </span>

    The place in the core:

    // Admin's always have the root mounted
    if ($this->isAdmin() && !($this->getTSConfig()['options.']['dontMountAdminMounts'] ?? false)) {
        $this->dataLists['webmount_list'] = '0,' . $this->dataLists['webmount_list'];
    }

    The original webmount_list should’t be appended here, IMHO (or add new setting that allows to specify this explicitly). (also the comment is wrong, obviously admins not always have the root mounted with the TS setting ;))

  5. Benni Mack commented <span data-processor="relativetime" data-value="2021-10-21T06:23:09+00:00" > 10/21/21, 06:23 </span>

    Hey Stefan,

    yes. But then there is another option when editing a user (admin and non-admin), called “Mount from groups” on each user, which allows to disable the inclusion of webmounts from usergroups. Removing the checkbox there does exactly what you suggested?

  6. S P commented <span data-processor="relativetime" data-value="2021-10-21T06:43:05+00:00" > 10/21/21, 06:43 </span>

    And how can i configure this to be like the following? :)

    • false for all admins (ever, no matter if a user becomes admin later)
    • true for non-admins (ever, no matter if an admin becomes a non-admin later)
    • checkbox always hidden (I don’t want to care per-user / per-user-change)

    I’m talking about an installation with many-hundreds users where its can happen that a user becomes admin and later a normal user again. We don’t want to have to care about assinging/removing user groups/checkboxes on any user-change. In our case we need “admin sees the root (and only the root, always), non-admin sees his personal mounts (and only these, always)”

  7. Benni Mack commented <span data-processor="relativetime" data-value="2021-10-21T07:26:26+00:00" > 10/21/21, 07:26 </span>

    Stefan P wrote in #note-7:
    > And how can i configure this to be like the following? :)
    >
    > * false for all admins (ever, no matter if a user becomes admin later)
    > * true for non-admins (ever, no matter if an admin becomes a non-admin later)
    > * checkbox always hidden (I don’t want to care per-user / per-user-change)
    >
    > I’m talking about an installation with many-hundreds users where its can happen that a user becomes admin and later a normal user again. We don’t want to have to care about assinging/removing user groups/checkboxes on any user-change. In our case we need “admin sees the root (and only the root, always), non-admin sees his personal mounts (and only these, always)”

    OK. A (new) TSconfig option would not help in this case then, I think. What I suggest you can do is:
    • Create an extension with a DataHandler hook, checking if an admin is transformed into a non-admin, and remove the checkboxes, and vice versa when transforming from a non-admin to an admin.
    • In addition, create a CLI command to check the checkboxes for all existing users to set the property accordingly.
  8. S P commented and changed TYPO3 Version 10 12 <span data-processor="relativetime" data-value="2024-12-18T09:58:26+00:00" > 12/18/24, 09:58 </span>

    Still valid on v12. An admin user with explicit db_mounts (from user or group, maybe leftovers from before-admin-times) sees the full page tree and the mounts alongside. Since he is admin already, the explicit mounts could be ignored.

  9. S P commented and changed TYPO3 Version 12 13 <span data-processor="relativetime" data-value="2024-12-19T09:43:11+00:00" > 12/19/24, 09:43 </span>

    Same behaviour on v13

  10. Benni Mack commented <span data-processor="relativetime" data-value="2025-03-26T08:32:36+00:00" > 03/26/25, 08:32 </span>

    Have you seen #25381? Sounds like a duplicate.

  11. S P commented <span data-processor="relativetime" data-value="2025-03-26T09:52:15+00:00" > 03/26/25, 09:52 </span>

    It is related, but no real duplicate IMHO. #25381 is about having nested mounts as a regular user (and proposes to only show the parent mount). This one here is about having (or converting a regular user to) an admin with mounts.

    Maybe it makes sense to tackle both at once, but they should be solvable independently.

    I think this ticket here “just” needs some admin check, pseudo-code:

    if($beUser->isAdmin()) {
        return $wholeTreeWithoutMounts;
    }
    
    return fetchMountsFromWholeTree();

    The other ticket would, in this pseudo-logic, need to adjust fetchMountsFromWholeTree() to drop mounted subtrees that are already included in another, more widened mount.

  12. S P commented and changed TYPO3 Version 13 14 <span data-processor="relativetime" data-value="2026-06-11T09:25:46+00:00" > 06/11/26, 09:25 </span>

    Still valid on v14. Admin with group-inherited mounts sees them along the full tree.

  13. Riccardo De Contardi commented and changed attached Screenshot 2026-10-07 alle 10.14.33.png <span data-processor="relativetime" data-value="2026-10-07T08:16:44+00:00" > 10/07/26, 08:16 </span>

    - on TYPO3 14, this is still true for both group-inherited mount points and mount points set on the user itself.

    - on TYPO3 15 this seems partially solved: if the mount point has been set on the user itself, you see a “temporary mount” (see attached screenshot). The problem persists for group-inherited mount points, though.

  14. Georg Ringer commented and changed status Needs Feedback Closed <span data-processor="relativetime" data-value="2026-10-18T13:40:29+00:00" > 10/18/26, 13:40 </span>

    closing for same reason as related issue https://forge.typo3.org/issues/25381#note-14