PacketFence
Bug Tracking System

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000027PacketFence 1.6.2public2006-05-04 07:382006-05-09 15:15
Reporteruser4 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Summary0000027: enable network button is shown in redir.cgi even if the user has reached max_enable for a given violation
DescriptionThe 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))) {
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000037)
user4
2006-05-04 07:39

Reminder sent to: user4, dlaporte, kevmcs

(0000059)
kevmcs (developer)
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");

- Issue History
Date Modified Username Field Change
2006-05-04 07:38 user4 New Issue
2006-05-04 07:39 user4 Note Added: 0000037
2006-05-09 15:15 kevmcs Status new => closed
2006-05-09 15:15 kevmcs Note Added: 0000059
2006-05-09 15:15 kevmcs Resolution open => fixed


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker