Hi,
I'm using this great module but having a request (maybe a feature request) to enable roles administer themes.

I created a new custom permission as follows:
administer themes
admin/build/themes
admin/build/themes/settings

the roles I enable this are able to enable/choice theme as well as changing global settings but they are not able to set "per theme" settings due to missing:
admin/build/themes/settings/themename

Now, I'd like to use wildcards, having for instance:
admin/build/themes/settings/*

is there another way to setup a custom permission to give roles full theme administration without adding every single theme?

Thanks

Comments

sander wemagine’s picture

I'm looking for the extact same feature to be able to use a wildcard in the URL's. Too bad I can't do it myself (not enough knowledge yet) otherwise I would have.

Looks like there has been some work on this already since there is some uncommented code in the config_perms.module file:

  // administer themes:
  // TODO
  /*
  foreach (list_themes() as $theme) {
    $items['admin/build/themes/settings/'. $theme->name]['access callback'] = 'config_perms_themes_access';
    $items['admin/build/themes/settings/'. $theme->name]['access arguments'] = array($theme);
  }
  */
Docc’s picture

Version: 6.x-2.0 » 7.x-2.x-dev
Assigned: Unassigned » Docc
Status: Active » Needs review

6.x is bugfixing only. So putting this on 7.x. Could always backport.
I added wildcard support in the latest commit. Give it a shot.

Docc’s picture

Title: create administer themes custom permission » Wildcard support for paths
Docc’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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