[solved] ImageUpload does not work for non-admin user

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
daymobrew
Forum Members
Forum Members
Posts: 17
Joined: Mon Jan 05, 2009 5:02 pm

[solved] ImageUpload does not work for non-admin user

Post by daymobrew »

I have CMSMS 1.5.1 and ImageUpload 0.1.2.

Admin users can upload images okay, but Editors don't the Browse buttons or text fields in the Image Upload area.
Attached screenshot shows difference between admin and Editor users.

Is this a known issue? Is there a fix or workaround? (I'd rather not promote all the users to admin).
Attachments
cmsms-image-upload-issue.jpg
Last edited by daymobrew on Tue Jan 13, 2009 2:20 pm, edited 1 time in total.
daymobrew
Forum Members
Forum Members
Posts: 17
Joined: Mon Jan 05, 2009 5:02 pm

[solved] ImageUpload does not work for non-admin user

Post by daymobrew »

I have implemented a workaround - in group permissions I gave Editors "Modify Site Preferences" permission.
Far from ideal but the module requires that or "Modify Files" permissions.
"Modify Files" was already enabled and should have triggered the code (it is an OR check).

Code: Select all

function VisibleToAdminUser() {
  return $this->CheckPermission('Modify Site Preferences') || $this->CheckPermission('Modify Files');
} 
new2thiscms
Forum Members
Forum Members
Posts: 47
Joined: Thu Nov 09, 2006 7:33 pm

Re: [solved] ImageUpload does not work for non-admin user

Post by new2thiscms »

You can change this to Modify Files if you would prefer and it works. I did that because I didn't want them having access to the calendar
jack4ya
Power Poster
Power Poster
Posts: 294
Joined: Thu Oct 19, 2006 10:07 am

Re: [solved] ImageUpload does not work for non-admin user

Post by jack4ya »

new2thiscms wrote: You can change this to Modify Files if you would prefer and it works. I did that because I didn't want them having access to the calendar
Does not work... I've added a permission rule in the db, and modified the imageupload.module.php to this... Alas...
Post Reply

Return to “Modules/Add-Ons”