| Line 18... |
Line 18... |
| 18 |
# Add checking to make sure they're in this department
|
18 |
# Add checking to make sure they're in this department
|
| 19 |
our ($EML, $PWD, $LVL) = split /&/, $cookie_string;
|
19 |
our ($EML, $PWD, $LVL) = split /&/, $cookie_string;
|
| 20 |
my $user = getUser ($EML);
|
20 |
my $user = getUser ($EML);
|
| 21 |
$user->{department} = convertDepartments $user->{department};
|
21 |
$user->{department} = convertDepartments $user->{department};
|
| Line 22... |
Line 22... |
| 22 |
|
22 |
|
| 23 |
if ($user->{department}->{"OFF"} < 1 or $LVL < 4) {
|
23 |
if ($user->{department}->{"OFF"} < 1 and $LVL < 4) {
|
| 24 |
print header(-cookie=>$RCAUTH_cookie);
|
24 |
print header(-cookie=>$RCAUTH_cookie);
|
| 25 |
printRCHeader("Unauthorized Page");
|
25 |
printRCHeader("Unauthorized Page");
|
| 26 |
print $h->div ({ class=>"error" }, "You're not an Official");
|
26 |
print $h->div ({ class=>"error" }, "You're not an Official");
|
| 27 |
print $h->div ("Your user account is not registered as an Official, so you can't see these shifts. It's possible that your access is still being reviewed. Please be patient.");
|
27 |
print $h->div ("Your user account is not registered as an Official, so you can't see these shifts. It's possible that your access is still being reviewed. Please be patient.");
|