Using getSessionData to check admin authorization