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
Post a Comment