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 |
Jump to:
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
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
fixed in 1.x-dev will be part of 1.2
#3
Automatically closed -- issue fixed for two weeks with no activity.