# You are not authorized to use filemanager

**URL:** https://forum.mautic.org/t/you-are-not-authorized-to-use-filemanager/4777
**Category:** Product Support
**Created:** [August 6, 2016, 9:31pm UTC](https://forum.mautic.org/t/you-are-not-authorized-to-use-filemanager/4777 "2016-08-06T21:31:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![balkee](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@balkee](https://forum.mautic.org/u/balkee)
#### Post date: [August 6, 2016, 9:31pm UTC](https://forum.mautic.org/t/you-are-not-authorized-to-use-filemanager/4777/1 "2016-08-06T21:31:06Z")

</div>

When editing a landing page (in v2.0), content tab, click to Insert Image, then the file browse icon: a new window opens (to access server files)  
  
  
  
I get the message: “You’re not authorized to use filemanager”  
  
  
  
No issues reported in the logs.  
  
It’s not a folder permission issue (open to web user)

---

<div class="post-metadata">

### Author: ![balkee](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@balkee](https://forum.mautic.org/u/balkee)
#### Post date: [August 6, 2016, 9:31pm UTC](https://forum.mautic.org/t/you-are-not-authorized-to-use-filemanager/4777/2 "2016-08-06T21:31:06Z")

</div>

When editing a landing page (in v2.0), content tab, click to Insert Image, then the file browse icon: a new window opens (to access server files)

I get the message: “You’re not authorized to use filemanager”

No issues reported in the logs.  
It’s not a folder permission issue (open to web user)

---

<div class="post-metadata">

### Author: ![balkee](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@balkee](https://forum.mautic.org/u/balkee)
#### Post date: [August 6, 2016, 9:43pm UTC](https://forum.mautic.org/t/you-are-not-authorized-to-use-filemanager/4777/3 "2016-08-06T21:43:46Z")

</div>

Got it working. It was not authenticating successfully. My temp fix was to force return a true in the auth function:

Edit:  
CoreBundle/Assets/js/libraries/ckeditor/filemanager/connectors/php/user.config.php  
…  
function auth() {  
global $authenticated;  
// You can insert your own code over here to check if the user is authorized.  
// If you use a session variable, you’ve got to start the session first (session\_start())

// return $authenticated; \<\<commented out  
return true;  
}  
…  
Remember to clear the cache to test.  
…

---

<div class="post-metadata">

### Author: ![balkee](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@balkee](https://forum.mautic.org/u/balkee)
#### Post date: [August 6, 2016, 10:32pm UTC](https://forum.mautic.org/t/you-are-not-authorized-to-use-filemanager/4777/4 "2016-08-06T22:32:27Z")

</div>

Actually, above change is not the correct way to resolve this… After that change, file manager listed folders but was pointing to a top level folder instead of the /media/images … and if I opened any folder, it displayed “No Way”…

Here’s the true solution to this issue:  
Edit:  
etc/php.ini

Add:  
extension=pdo.so  
date.timezone=“America/New\_York”

I’ve undone the previous change (not forcing a true return) , no code change needed, and filemanager now works as it should.
