Adding/editing CSS injector under Drupal 6.2 not allowed

mdonkers - April 11, 2008 - 08:11
Project:CSS Injector
Version:6.x-1.1
Component:User interface
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

I had CSS injector installed under Drupal 6.1 and it worked fine. Since my upgrade to Drupal 6.2 I get a No access, you do not have sufficient access rights to visit this page, whenever I try to edit one of my existing or add a new CSS injector.

I have checked the access rights of the sites/default/files directory, but they appear to be okay (the uploading of images via the Img module works fine).

#1

mdonkers - April 11, 2008 - 10:41

Found this information on converting 6.0, 6.1 modules to 6.2:

Converting 6.0, 6.1 modules to 6.2

#2

mdonkers - April 11, 2008 - 10:58

Fixed the problem with the following workaround:

In css_injector.module in the function css_injector_menu:

have copied the following two lines:

      'access callback' => 'user_access',
      'access arguments' => array('administer css injection'),

from the item 'admin/settings/css_injector'

to the items: 'admin/settings/css_injector/edit', 'admin/settings/css_injector/add', and' admin/settings/css_injector/delete'.

Now it works fine, again.

#3

macrocosm - April 19, 2008 - 09:37

Thanks .. that worked perfectly!! ^_^

#4

Rob T - April 24, 2008 - 07:00

THis seems to be working for me as well. Thanks.

#5

Eaton - May 6, 2008 - 17:44

The fix has been checked in and is part of the dev version -- I'll roll a new release shortly. Thanks!

#6

Pasqualle - June 16, 2008 - 11:35

bump
the project does not have dev release

new release or dev snaphot is required as soon as possible. asking people to hack the module is not the way to go..

#7

Eaton - June 16, 2008 - 13:25
Status:active» fixed

A new release has been rolled -- 1.2 includes the fixed code. Thanks!

#8

Anonymous (not verified) - June 30, 2008 - 13:28
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.