Changed hasAnyAccess to hasAccess

now uses single permission check instead of array with single element