def CheckIsRoot(self):
    if not self._permissions.IsRoot():
      raise web.HTTPError(httplib.FORBIDDEN, 'User %s does not have root credentials.' % self._auth_credentials)
Check whether the permissions object has a ROOT rights entry.
dataset/ETHPy150Open viewfinderco/viewfinder/backend/www/admin/admin.py/AdminHandler.CheckIsRoot