You are not logged in.

  • Index
  •  » Support
  •  » Sorry, you don't have access to the imagemanager/filemanager.

#1 2009-05-07 16:29:28

garyha91
Member
Registered: 2008-05-26
Posts: 19

Sorry, you don't have access to the imagemanager/filemanager.

I get this message when trying to run the FileManager in Drupal 6.

It works fine for the drupal admin user, but not for any other user, even with all of drupal permissions assigned to a role.

Gary

Offline

 

#2 2009-05-07 16:59:53

spocke
Administrator
From: Sweden, Skellefteċ
Registered: 2004-11-25
Posts: 11253
Website

Re: Sorry, you don't have access to the imagemanager/filemanager.

Are you using the Drupal authenticator? Is it working correctly if you simply disable the authenticator by setting that option to an empty string?


Best regards,
Spocke - Main developer of TinyMCE

Offline

 

#3 2009-05-07 17:10:17

garyha91
Member
Registered: 2008-05-26
Posts: 19

Re: Sorry, you don't have access to the imagemanager/filemanager.

I'm using the following settings

// Authenication
$mcFileManagerConfig['authenticator'] = "ExternalAuthenticator";

// ExternalAuthenticator config
$mcFileManagerConfig['ExternalAuthenticator.external_auth_url'] = "http://www.website.com/auth_drupal.php";
$mcFileManagerConfig['ExternalAuthenticator.secret_key'] = "XXXXXX";

Offline

 

#4 2009-05-07 17:12:00

spocke
Administrator
From: Sweden, Skellefteċ
Registered: 2004-11-25
Posts: 11253
Website

Re: Sorry, you don't have access to the imagemanager/filemanager.

It will check the access tinymce imagemanager and access tinymce filemanager permissions. I don't know enough about drupal but your user needs to be in those roles.


Best regards,
Spocke - Main developer of TinyMCE

Offline

 

#5 2009-05-07 17:57:04

garyha91
Member
Registered: 2008-05-26
Posts: 19

Re: Sorry, you don't have access to the imagemanager/filemanager.

There are no specific roles to be set for plugins for TinyMCE, just a general permission to allow them to use TinyMCE.

It's strange that it works for admin user but not any others?

Offline

 

#6 2009-05-07 18:49:43

spocke
Administrator
From: Sweden, Skellefteċ
Registered: 2004-11-25
Posts: 11253
Website

Re: Sorry, you don't have access to the imagemanager/filemanager.

Maybe admins will be all roles active no mater what? Don't know enough about drupal. But if you assign the users to a imagemanager/filemanager role it should work.


Best regards,
Spocke - Main developer of TinyMCE

Offline

 

#7 2009-05-08 10:53:48

garyha91
Member
Registered: 2008-05-26
Posts: 19

Re: Sorry, you don't have access to the imagemanager/filemanager.

Solved.

The auth_drupal.php file shipped with the filemanager does not work out of the box as it was for the old and depreciated module TinyMCE WYSIWYG.  Drupal now uses WYSIWYG API to get text editors working.

If anyone else comes across this.  My install is as follows.

On Drupal:

WYSIWYG API with TinyMCE installed, Filemanager installed and registered with it, in the new WYSIWYG API module you need to allow Filemanager by adding the following likes to sites/all/modules/wysiwyg/editors/tinymce.inc

'filemanager' => array(
      'path' => $editor['library path'] .'/plugins/filemanager',
      'buttons' => array('media' => t('File Manager')),
      'url' => 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/filemanager',
      'internal' => TRUE,
      'load' => TRUE,
    ),



This will allow the admin user only to use the FileManager plugin.  To allow all users with the TinyMCE permission assigned to their role you need to edit this part of auth_drupal.php file also.

// Check if user is valid or not
if (!user_access('access tinymce imagemanager') && !user_access('access tinymce filemanager'))
die("Sorry, you don't have access to the imagemanager/filemanager.");


the reason this will not work is that no permission called Access TinyMCE Filemanager exists with the new WYSIWYG API, to get it to work comment out the block of code:

// Check if user is valid or not
    //if (!user_access('access tinymce imagemanager') && !user_access('access tinymce filemanager'))
    //die("Sorry, you don't have access to the imagemanager/filemanager.");



Gary

Last edited by garyha91 (2009-05-08 10:54:53)

Offline

 

#8 2009-05-08 11:24:16

spocke
Administrator
From: Sweden, Skellefteċ
Registered: 2004-11-25
Posts: 11253
Website

Re: Sorry, you don't have access to the imagemanager/filemanager.

Yes, there was another guy modifying it to use the WYSIWYG API I guess we should swap everything to that and also the documentation.


Best regards,
Spocke - Main developer of TinyMCE

Offline

 
  • Index
  •  » Support
  •  » Sorry, you don't have access to the imagemanager/filemanager.

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB