Changeset 641
- Timestamp:
- 06/06/14 16:57:46 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns.cgi
r640 r641 97 97 or die CGI::Session->errstr(); 98 98 99 if (!$sid || $session->is_expired ) {99 if (!$sid || $session->is_expired || !$session->param('uid') || !$dnsdb->userStatus($session->param('uid')) ) { 100 100 $webvar{page} = 'login'; 101 101 } else { … … 1234 1234 ($permissions{self_edit} && $webvar{id} == $session->param('uid')) )) { 1235 1235 my $stat = $dnsdb->userStatus($webvar{id}, $webvar{userstatus}); 1236 # kick user out if user disabled self 1237 # arguably there should be a more specific error message for this case 1238 changepage(page=> 'login', sessexpired => 1) if $webvar{id} == $session->param('uid'); 1236 1239 $page->param(resultmsg => $DNSDB::resultstr); 1237 1240 } else {
Note:
See TracChangeset
for help on using the changeset viewer.