It would be nice to allow users to use this feature would be best done through the use of drupal user permissions

Comments

aacraig’s picture

Status: Active » Postponed (maintainer needs more info)

Could you explain the use case you're talking about? There are two permission settings -- setting up rulesets, and applying rules. If you have other use cases, please explain them here.

infines’s picture

I seem to be missing where these permissions are on the User Permissions page. I can't find them at all. When an authenticated user goes to the theme_hues/configure page it just displays an access denied.

efarg’s picture

Version: 7.x-1.2 » 7.x-1.3

Is absent obviously also in the version 7.x-.1.3.
The module can be used in the present version only by user / 1.

hellomobe’s picture

need to fix the module file for function hook_perm (D6) to function hook_permission (D7)

so line 66 needs to be function theme_hues_permission()

JohnnyW’s picture

Fuckn hell. This module doesn't work. No permissions?

zrupal’s picture

Hi hellomobe, could you explain how I might do that in a bit more detail. I am not a programer but I would love to use this module as it is pretty much exactly what I need. I tried simply replacing theme_hues_perm() with theme_hues_permission() but that just caused my admin/people/permissions page not to load. Sorry I realize this is an old thread but I figured it is worth a try. Thanks!

allvip’s picture

permmissions for theme hues does not shows in admin/people/permissions (without it your users can not use theme hues) because of error in theme_hues.module

change on line 63

this code:

/**
 * Implementation of hook_perm
 */
function theme_hues_perm() {
  return array(
    "configure theme_hues", // end user privileges
    "administer theme_hues" // administrator privileges
    );
 }

to this:


/**
 * Implementation of hook_permission
 */
function theme_hues_permission() {
  return array(
     "configure theme_hues" => array(
      'title' => t('user privileges'),
      'description' => t('user privileges'),
    ), // end user privileges
    "administer theme_hues" => array(
      'title' => t('administer theme hues'),
      'description' => t('administer theme hues'),
    ), // administrator privileges
    );
 }

you can delete DESCRITION if you do not need it:

'description' => t('user privileges'),
'description' => t('administer theme hues'),
allvip’s picture

the Theme Hues link shows on the navigatin.
you may want to change this in someting like Customize Theme (more users friendly)

admin/structure/menu/manage/navigation and click edit for Theme Hues link to change Menu link title and move the link in other menu if you do not want it in the navigation.