mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
parent
433cbb3142
commit
ffe2c629bc
7 changed files with 117 additions and 46 deletions
|
|
@ -2058,18 +2058,6 @@ end
|
|||
|
||||
-- ##############################################
|
||||
|
||||
function isAdministrator()
|
||||
local user_group = ntop.getUserGroup()
|
||||
|
||||
if(user_group == "administrator") or (user_group == "") then
|
||||
return(true)
|
||||
else
|
||||
return(false)
|
||||
end
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
function haveAdminPrivileges()
|
||||
if(isAdministrator()) then
|
||||
return(true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue