Bug 252 - Further tweaks to control permissions.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1822 e3e1d417-86f3-4887-817a-d78f3d33393fpull/27/merge
parent
dec7dbf792
commit
b19d36cb49
|
@ -437,7 +437,7 @@ function controlPresets( $monitor )
|
|||
</tr>
|
||||
</table></td>
|
||||
<?php
|
||||
if ( $monitor['CanSetPresets'] )
|
||||
if ( canEdit( 'Monitors' ) && $monitor['CanSetPresets'] )
|
||||
{
|
||||
?>
|
||||
<td class="text" align="left"><input type="button" class="smallbutton" value="<?= $zmSlangSet ?>" onClick="newWindow( '<?= $PHP_SELF ?>?view=controlpreset&mid=<?= $monitor['Id'] ?>', 'zmPreset', <?= $jws['preset']['w'] ?>, <?= $jws['preset']['h'] ?> );"></td>
|
||||
|
|
|
@ -53,7 +53,7 @@ window.focus();
|
|||
<?php
|
||||
if ( $control )
|
||||
{
|
||||
if ( canEdit( 'Monitors' ) )
|
||||
if ( canView( 'Control' ) )
|
||||
{
|
||||
?>
|
||||
<frame src="<?= $PHP_SELF ?>?view=control&mid=<?= $monitor['Id'] ?>" marginwidth="0" marginheight="0" name="ControlPanel<?= $monitor['Id' ] ?>" scrolling="auto">
|
||||
|
|
Loading…
Reference in New Issue