Admin can't access

Abilnet - June 8, 2008 - 09:14
Project:Time Map
Version:5.x-1.1
Component:User interface
Category:bug report
Priority:normal
Assigned:sethfreach
Status:closed
Description

A bug report:

Site admin (Drupal user#1) can't access to path: timemap/map

Error message:

Access denied
You are not authorized to access this page.

(This path works normally to users in group with granted access to TimeMap reports, the problem is only with the user #1)

Thanks for the module, your work appreciated!

#1

sethfreach - June 9, 2008 - 13:55
Assigned to:Anonymous» sethfreach
Status:active» postponed

From line 437 of timemap.module

<?php
  $allowed
= timemap_viewable_reports_list();
  if ( !
in_array($uid, array_keys($allowed)) ) {
   
drupal_access_denied();
    exit();
  } 
?>

UID #1 by default passes the user_access() wrappers, but isn't added to the $allowed array that is internaly build and checked. Will fix.

#2

sethfreach - June 11, 2008 - 22:23
Status:postponed» fixed

fixed in 1.x-dev will be part of 1.2

#3

Anonymous (not verified) - June 25, 2008 - 22:32
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.