Rename haveAdminPrivileges -> isAdministratorOrPrintErr (use meaningful names)

This commit is contained in:
Alfredo Cardigliano 2021-07-02 16:51:40 +02:00
parent 96c5e2025d
commit ca6707c54a
52 changed files with 53 additions and 53 deletions

View file

@ -15,7 +15,7 @@ local rest_utils = require "rest_utils"
local import_export_rest_utils = require "import_export_rest_utils"
local auth = require "auth"
if not haveAdminPrivileges() then
if not isAdministratorOrPrintErr() then
rest_utils.answer(rest_utils.consts.err.not_granted)
return
end