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

sethfreach’s picture

Assigned: Unassigned » sethfreach
Status: Active » Postponed

From line 437 of timemap.module

  $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.

sethfreach’s picture

Status: Postponed » Fixed

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

Anonymous’s picture

Status: Fixed » Closed (fixed)

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