Implement canView for Monitors
This commit is contained in:
parent
aeb98ec790
commit
beb7a75d5a
|
@ -580,6 +580,11 @@ class Monitor extends ZM_Object {
|
||||||
return ( $user && ($user['Monitors'] == 'Edit') && ( !$this->{'Id'} || visibleMonitor($this->{'Id'}) ));
|
return ( $user && ($user['Monitors'] == 'Edit') && ( !$this->{'Id'} || visibleMonitor($this->{'Id'}) ));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function canView() {
|
||||||
|
global $user;
|
||||||
|
return ( $user && ($user['Monitors'] != 'None') && ( !$this->{'Id'} || visibleMonitor($this->{'Id'}) ));
|
||||||
|
}
|
||||||
|
|
||||||
function TriggerOn() {
|
function TriggerOn() {
|
||||||
$cmd = getZmuCommand(' -a -m '.$this->{'Id'});
|
$cmd = getZmuCommand(' -a -m '.$this->{'Id'});
|
||||||
$output = shell_exec($cmd);
|
$output = shell_exec($cmd);
|
||||||
|
|
Loading…
Reference in New Issue