How to use for non-admin users

Caleb G2 - November 4, 2006 - 18:33
Project:Separate "management" theme for administrative pages
Version:HEAD
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

The default set up for this module prohibits non-admin users from access non-admin pages you'd like to use the "manage" theme for. By commenting out the following code you can use the "manage" theme on any page you'd like and still have anonymous and logged in users access it:

if (   !in_array($_GET['q'], array('manage/login', 'manage/style.css'))
      && !user_access('access administration pages')) {
    if ($user->uid == 0) {
      drupal_goto('manage/login');
    }
    else {
      drupal_goto('/');
    }
  }

 
 

Drupal is a registered trademark of Dries Buytaert.