Hi Scott and Reports Fans,
Thanks for quick reply,
Yes, I did it today, I set up user as a Dept. Manager, but unfortunately he still can not see Reports in top menu.
What should I check, what You think?:-)
Lucas
Ps. There is no problem with Admins.
===========================================
edit:
I checked that only link in top menu is missing for Managers,
because when I go to address https:///scp/reports.php MOD is working perfectly:-)
===========================================
edit:
And its another thing, when I came back with my test user to normal account type (staff member, not a dept manager) he can still access to reports page, selecting in browser direct address https:///scp/reports.php
It should be something in this code:
if($thisuser->isAdmin() && !defined('ADMINPAGE')) { ?>
| <a href="admin.php">Admin Panel</a> | <a href="reports.php">Reports</a>
<?}else{?>
| <a href="index.php">Staff Panel </a> <? if((!$thisuser->isadmin() && !$thisuser->isManager() && $graphOptions=='staff') ||
(!$thisuser->isadmin() && $thisuser->isManager() && (($graphOptions=='managers') || ($graphOptions=='staff'))) ||
$thisuser->isadmin())
{?> | <a href="reports.php">Reports</a> <?}?>
<?}?>
| <?="$isdeptmanager";?><a href="profile.php?t=pref">My Preference</a> | <a href="logout.php">Log Out</a></p>