Skip to content

Moving to Sub-Folders #758

Open
Open
@LucyTurtle

Description

@LucyTurtle

Hello,

I am using this config handler to make it so I can have an admin folder with access to all user's folders.

<?php

namespace App\Handlers;

class LfmConfigHandler extends \UniSharp\LaravelFilemanager\Handlers\ConfigHandler
{
    public function userField()
    {
        if( auth()->user()->role_id <= 2 ) {
        	return 'users';
        } else {
        	return 'users/' . auth()->user()->first_name . '-' . auth()->user()->last_name;
        }
    }
}

This is making it so that it is impossible to move to sub-folders as an admin since the 'move' menu doesn't show sub-folders of sub-folders. Hopefully we could see more hirarchy in the move menu so we can move to more locations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementOptimization for existing features.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions