Just installed into a fully updated Drupal 8.1.0 site and when attempting to use the IMCE Link tool, the pop-up window opens with the Access Denied page.

It was logged as follows:

Type – access denied
Date – Wednesday, April 20, 2016 - 15:24
User – admin
Location – http://the-site-url/imce?ck_id=edit-body-0-value&sendto=CKEDITOR.imce.se...
Referrer – http://the-site-url/node/59/edit
Message – /imce?sendto=CKEDITOR.imce.sendto&type=link&ck_id=edit-body-0-value
Severity – Warning
Hostname – MY-IP-ADDRESS
Operations

I've tried the 8.x-1.x-dev as well as the 8.x-1.1 version and I tried it with the D8 site as a Drupal 8.0.6 before I updated Drupal to 8.1.0. There was no difference.

I'm not sure what the issue is. I've used earlier IMCE Dev versions without trouble.

Thanks,
Andrew

Comments

awasson created an issue. See original summary.

jlicht’s picture

You may need to explicitly give the admin user a role that's configured to use IMCE on the IMCE configuration page. IMCE doesn't automatically give the admin user access to the file browser.

awasson’s picture

Thanks. Solved.

Actually, what it was is that the #1 user wasn't recognized as an Admin or Administrator by IMCE. This site is a Drupal 6 to Drupal 8 migration and when I checked my role, prompted by your suggestion, I found that my #1 user wasn't assigned a role of any sort. By virtue of being the #1 user I have full reign over the system but IMCE didn't recognize that until I assigned a role of Administrator to my #1 user.

ufku’s picture

Status: Active » Closed (works as designed)

Imce uses role-based configuration profiles. See /admin/config/media/imce

k2admin’s picture

Thank you, ufku! That solved my issue.