Replaced boolean value for auth/allowed, replaced with raise Exception