work towards hasAccess directive and using constants