Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When trying to edit the initial default IMCE profile, if you're not logged in as initial user (user id: 1) then you will receive an "Access is Denied" message.
Comment | File | Size | Author |
---|---|---|---|
IMCE_error.jpg | 14.48 KB | jasen |
Comments
Comment #1
denjell CreditAttribution: denjell commentedI am having the same problem. And yes, I have made sure that the other profiles are not using the maintenance setup.
Comment #2
ufku CreditAttribution: ufku commentedIt was actually a feature where profile#1 is editable by only user#1.
Comment #3
midoriconcept CreditAttribution: midoriconcept commentedHi, can you kindly explain what does it mean?
WHat should I do to make the IMCE file browser usable by non admin users?
Thanks a lot
Comment #4
ufku CreditAttribution: ufku commentedIt's not about allowing users to access IMCE. You can always create a new configuration profile and assign it to the user roles you like.
Comment #5
IsaacLem CreditAttribution: IsaacLem commentedDo you mind to state the steps clearly so that junior developer like me or rather beginner will know what to do?
Your helps is very much appreciated.
Comment #6
cheyer CreditAttribution: cheyer commentedi have exactly the same problem and i am not using profile-1 nor sample profile, means I did setup a dedicated profile for another role and also allocated the profile to that role. I even tried with profile-1 settings populated into this new profile, I still get the access denied error for this role.
admin can still upload images, so it should not be any server configuration and rights issue here. any more hints?
Comment #7
chucksimply CreditAttribution: chucksimply commentedSame deal here. Anyone solve this one yet?
Comment #8
tswaters CreditAttribution: tswaters commentedJust installed IMCE and ran into this problem...
On our site, we've got a single sign on system so really no one should ever be logged in as admin. We get by with the 'administrator' role and, in special circumstances, when I truly need uid 1, I'll work around it by using drush and/or disabling the SSO module temporarily, but it is a pain.
Maybe I'm not understanding something about how this works and why it was chosen to use admin role so specifically, but wouldn't it be better if a check was performed for the 'administrator' role instead of uid 1?
Something like this,
I can roll a patch for this, but I'm curious if the maintainer(s) can elaborate on this feature and why it exists... is there a reason checks like these can't go based on the administrator role? Right now it feels like I'm locked out of my own site :)
Comment #9
jayjax@gmail.com CreditAttribution: jayjax@gmail.com commentedI had this issue as well. Make sure you set the configuration permissions correctly here: /admin/config/media/imce as User-1, or whatever you want to call it.
Comment #10
ufku CreditAttribution: ufku commentedIMCE is now allowing administrators to edit User-1 profile.
Comment #12
K99 CreditAttribution: K99 commentedIf you are experiencing such problem. Simply disable the imce module, delete it the module folder and reinstall it.