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