php - elFinder - Separate Access Control For Root Folder and Subfolders -


i have thick question, how disable deleting/renaming first level of folders in root?

for example if root path path/to/files want prevent user being able delete/rename first level of folders after root path/to/files/first_level_folder, user should able have full control inside path/to/files/first_level_folder/subfolders.

i tried doing:

    'attributes' => array(                         array(                                 'pattern' => '/no_edit_path/',                                  'read'    => true,                                 'write'   => false,                                 'locked'  => true,                                 'hidden'  => false                             ),                         array(                                 'pattern' => '/no_edit_path/*',                                  'read'    => true,                                 'write'   => true,                                 'locked'  => false,                                 'hidden'  => false                             ),                         ) 

i have desired effect in user can't temper first level folders, can't add sub-folders , files... there workaround?

thank time.

after trying few more things found solution. maybe in future.

  'attributes' => array(                         array(                                 'pattern' => '/no_edit_path$/',                                  'read'    => true,                                 'write'   => false,                                 'locked'  => true,                                 'hidden'  => false                             ),                         array(                                 'pattern' => '/no_edit_path/.*/',                                  'read'    => true,                                 'write'   => true,                                 'locked'  => false,                                 'hidden'  => false                             ),                         ) 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -