PacketFence - BTS - PacketFence 1.6.2
View Issue Details
0000027PacketFence 1.6.2public2006-05-04 07:382006-05-09 15:15
user4 
 
normalminoralways
closedfixed 
0000027: enable network button is shown in redir.cgi even if the user has reached max_enable for a given violation
The enable network button appears even if the user has reached max_enable for a given violation

If lib/pf/violation.pm exports the violation_count_vid subroutine and we do the following diff to cgi-bin/redir.cgi, the button is only shown if the user can really re-enable the network access

81c81
< } elsif ($class->{'auto_enable'} eq 'Y'){
---
> } elsif (($class->{'auto_enable'} eq 'Y') && ($class->{'max_enables'} > violation_count_vid($mac,$vid))) {
No tags attached.
Issue History
2006-05-04 07:38user4New Issue
2006-05-04 07:39user4Note Added: 0000037
2006-05-09 15:15kevmcsStatusnew => closed
2006-05-09 15:15kevmcsNote Added: 0000059
2006-05-09 15:15kevmcsResolutionopen => fixed

Notes
(0000037)
user4   
2006-05-04 07:39   
Reminder sent to: user4, dlaporte, kevmcs

(0000059)
kevmcs   
2006-05-09 15:15   
we should like to show the button so release.cgi can display the message

 generate_error_page("Maximum re-enables reached - please contact your IT support staff");