I don't see the swfupload permissions on the user permissions page. I am only able to upload images as user 1. I took a look into the code and the permission hook is there. So do I make something wrong?

CommentFileSizeAuthor
#2 swfupload-fix_hook_perm-1706686.patch914 byteslogickal

Comments

broncomania’s picture

I see that there is still the hook_perm() for the rights. This is now hook_permissions() in d7.

/**
 * Implements hook_permission().
 */
function swfupload_permission() {
  return array(
    'upload files with swfupload' => array(
      'title' => t('swfupload'), 
      'description' => t('Upload files with swfupload'),
    ),
  );
}
logickal’s picture

Status: Active » Needs review
StatusFileSize
new914 bytes

I ran across this today and fixed, then found this issue (which is honestly a pretty big issue!). Here's a patch, rolled against 7.x-1.x.

Anonymous’s picture

Thanks so much for this patch!

I was able to get the upload button only as user 1, the other users where getting a greyed out button. After applying the patch I went to the modules page, looked for SWFupload Widget module and was able to see the permissions link to the right of it.

You guys rock!