Project:Time Map
Version:5.x-1.1
Component:User interface
Category:bug report
Priority:normal
Assigned:sethfreach
Status:closed (fixed)

Issue Summary

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!

Comments

#1

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

Status:postponed» fixed

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

#3

Status:fixed» closed (fixed)

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

nobody click here