I'm trying to write some permissions into my application, simply put getting a list of users who are allowed to edit a record. I have a basic list of users stored in array who have access, and I want to enforce a precondition that says if the users_id trying to edit the record is in the array, then they can edit.
The problem I'm running into is that I don't see any array functions for validating data exists within a precondition, I'm only seeing basic mathematical operators.
Does anyone know how to go about achieving this?