You are here

public function filedepot_permission_object::canUploadDirect in filedepot 7

File

./permissions.class.php, line 81
permissions.class.php Permissions management class for the Filedepot module

Class

filedepot_permission_object
Holds information about a CIDs permissions

Code

public function canUploadDirect() {
  if ($this
    ->hasPermission(filedepot_permission_object::UPLOAD_DIRECT) || $this
    ->hasPermission(filedepot_permission_object::ADMIN)) {
    return TRUE;
  }
  else {
    return FALSE;
  }
}