Bug 252 - Further tweaks to control permissions.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1822 e3e1d417-86f3-4887-817a-d78f3d33393f
pull/27/merge
stan 2006-01-15 17:33:44 +00:00
parent dec7dbf792
commit b19d36cb49
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View File

@ -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">