我正在使用 elFinder 2 + Codeigniter。我想限制用户删除或修改我所有文件夹中的现有文件。
我试过这个:
function elfinder_init(){
      $this->load->helper('path');
      $opts = array(
        // 'debug' => true, 
        'roots' => array(
          array( 
            'driver' => 'LocalFileSystem', 
            'path'   => set_realpath('root'), 
            'URL'    => base_url('root'),
             //This didn't do the trick***
            'defaults'   => array('read' => true, 'write' => false, 'locked' => true),
          ) 
        )
      );
      $this->load->library('elfinder_lib', $opts);
    }
它阻止用户上传新文件,但仍允许他们修改/删除现有文件。
官方文档一般来说非常模糊,并且没有关于如何实现这一点的信息,所以如果你能帮助我,我将非常感激。