Skip to content

Commit

Permalink
add check role #126
Browse files Browse the repository at this point in the history
  • Loading branch information
64j committed Jul 29, 2017
1 parent 3d24e2a commit f9dab1a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions manager/actions/mutate_htmlsnippet.dynamic.php
Expand Up @@ -198,9 +198,11 @@ function changeRTE()
<input name="newcategory" type="text" maxlength="45" value="<?= isset($content['newcategory']) ? $content['newcategory'] : '' ?>" class="form-control" onChange="documentDirty=true;" />
</div>
</div>
<div class="form-row">
<label><input name="disabled" type="checkbox" value="on"<?= ($content['disabled'] == 1 ? ' checked="checked"' : '') ?> /> <?= ($content['disabled'] == 1 ? "<span class='text-danger'>" . $_lang['disabled'] . "</span>" : $_lang['disabled']) ?></label>
</div>
<?php if ($_SESSION['mgrRole'] == 1): ?>
<div class="form-row">
<label><input name="disabled" type="checkbox" value="on"<?= ($content['disabled'] == 1 ? ' checked="checked"' : '') ?> /> <?= ($content['disabled'] == 1 ? "<span class='text-danger'>" . $_lang['disabled'] . "</span>" : $_lang['disabled']) ?></label>
</div>
<?php endif; ?>
</div>

<!-- HTML text editor start -->
Expand Down

0 comments on commit f9dab1a

Please sign in to comment.