mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-06-07 00:47:00 +03:00
group permissions check & first check on index page
This commit is contained in:
parent
a57af479b8
commit
6d56c7a44f
2 changed files with 20 additions and 2 deletions
|
@ -153,7 +153,7 @@ function quote_content($content) {
|
|||
}
|
||||
|
||||
function check_account($zone) {
|
||||
return is_adminuser() or ($zone->account === get_sess_user());
|
||||
return is_adminuser() or ($zone->account === get_sess_user()) or check_permissions($zone->id,PERM_VIEW);
|
||||
}
|
||||
|
||||
if (isset($_GET['action'])) {
|
||||
|
@ -200,6 +200,7 @@ case "listrecords":
|
|||
$zone->parse($zonedata);
|
||||
$records = $zone->rrsets2records();
|
||||
|
||||
// if(permissions($zone->id))
|
||||
if(!empty($_POST['label'])) {
|
||||
$records=array_filter($records,
|
||||
function ($val) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue