function plupload_upload_access in Plupload integration 7
Same name and namespace in other branches
- 7.2 plupload.module \plupload_upload_access()
Verifies the token for this request.
1 string reference to 'plupload_upload_access'
- plupload_menu in ./
plupload.module - Implements hook_menu().
File
- ./
plupload.module, line 33 - Implementation of plupload.module.
Code
function plupload_upload_access() {
foreach (func_get_args() as $permission) {
if (!user_access($permission)) {
return FALSE;
}
}
return !empty($_REQUEST['plupload_token']) && drupal_valid_token($_REQUEST['plupload_token'], 'plupload-handle-uploads');
}