mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-06-07 00:47:00 +03:00
Create option to not allow a normal user to add zones
This commit is contained in:
parent
4881858d68
commit
00c40c047e
3 changed files with 15 additions and 6 deletions
|
@ -109,7 +109,9 @@ if (isset($templatelist)) {
|
|||
</ul>
|
||||
</div>
|
||||
<div id="zones">
|
||||
<? if (is_adminuser() or $allowzoneadd === TRUE) { ?>
|
||||
<div style="visibility: hidden;" id="ImportZone"></div>
|
||||
<? } ?>
|
||||
<div class="tables" id="MasterZones">
|
||||
<div class="searchbar" id="searchbar">
|
||||
<input type="text" id="domsearch" name="domsearch" placeholder="Search...."/>
|
||||
|
@ -153,8 +155,10 @@ $(document).ready(function () {
|
|||
openChildAsAccordion: true,
|
||||
actions: {
|
||||
listAction: 'zones.php?action=listslaves',
|
||||
<? if (is_adminuser() or $allowzoneadd === TRUE) { ?>
|
||||
createAction: 'zones.php?action=create',
|
||||
deleteAction: 'zones.php?action=delete'
|
||||
<? } ?>
|
||||
},
|
||||
fields: {
|
||||
id: {
|
||||
|
@ -253,8 +257,10 @@ $(document).ready(function () {
|
|||
openChildAsAccordion: true,
|
||||
actions: {
|
||||
listAction: 'zones.php?action=list',
|
||||
<? if (is_adminuser() or $allowzoneadd === TRUE) { ?>
|
||||
createAction: 'zones.php?action=create',
|
||||
deleteAction: 'zones.php?action=delete',
|
||||
<? } ?>
|
||||
<? if (is_adminuser()) { ?>
|
||||
updateAction: 'zones.php?action=update'
|
||||
<? } ?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue