The create folder permission is missing on the users permission page.
It looks like function filebrowser_perm() {
does not implement,
FILEBROWSER_CREATE_FOLDER.

After adding this to the above mentioned function the permission appears and can be granted.

CommentFileSizeAuthor
#3 filebrowser-perm-964396-2.diff344 bytesNicolas Georget

Comments

Nicolas Georget’s picture

I dont know if it's a bug report, but i subscribe !

@clivesj: Add this to the function filebrowser_perm() is enough to grant the perm to the roles ?

clivesj’s picture

Yes, unfortunately i cannot roll patsches at the moment:

function filebrowser_perm() {
  return array(
      FILEBROWSER_CREATE_DIRECTORY_LISTING, 
      FILEBROWSER_DELETE_OWN_DIRECTORY_LISTINGS, 
      FILEBROWSER_DELETE_ANY_DIRECTORY_LISTINGS, 
      FILEBROWSER_EDIT_OWN_DIRECTORY_LISTINGS, 
      FILEBROWSER_EDIT_ANY_DIRECORY_LISTINGS, 
      FILEBROWSER_VIEW_DIRECORY_LISTINGS, 
      FILEBROWSER_UPLOAD, 
      FILEBROWSER_DOWNLOAD_ARCHIVE, 
      FILEBROWSER_DELETE_FILE, 
      FILEBROWSER_DOWNLOAD,
     // add this line for the -Create Folder- option to appear in the user roles permission page
      FILEBROWSER_CREATE_FOLDER,
  );
}
Nicolas Georget’s picture

StatusFileSize
new344 bytes

Submit a patch

clivesj’s picture

Status: Active » Reviewed & tested by the community
Yoran’s picture

Status: Reviewed & tested by the community » Fixed

Thanks to Nicolas Georget (and clivesj). Patch applyed to last dev version.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.