Found it
but my skill as dev are #$%# :)
Im trying to excecute the function update on Node.pm eveytime I change
the Role of the node. I include this code on it:
if ($result) {
if ($previous_node_ref->{status} ne $node_ref->{status}) {
# Node has been registered or deregistered
reevaluate_access($mac, "node_modify");
}
elsif ($luisteste->{category} ne /$node_ref->{category}/) {
# Node has been registered or deregistered
reevaluate_access($mac, "node_modify");
$status = $STATUS::INTERNAL_SERVER_ERROR;
$result = $teste;
}
But I cant find how can I compare the db result with the actual Role form
field ( hope you understand )
LT
Citando Jason Frisvold <[email protected]>:
luis torres wrote: > Hi mates,
what "node_attributes($mac);" resturns?
Contextually speaking, it returns the node attributes for the mac
address you provide.
It shouldn't be that hard to find the function definition and get a
definitive answer.
cheers
LT
--
---------------------------
Jason 'XenoPhage' Frisvold
[email protected]
---------------------------
"Any sufficiently advanced magic is indistinguishable from technology.\"
- Niven's Inverse of Clarke's Third Law
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
PacketFence-users mailing list
[email protected]https://lists.sourceforge.net/lists/listinfo/packetfence-users
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users