Well, the only thing that I would like to point out, is the use of tokenize without a paremeter, because atm you don't use a parameter, and tokenize without a parameter will tokenize spaces and commas, so if an account with a space in it is listed in the ACCESS enum, the account with a space in it won't function properly,..
PHP Code:
function onCreated() {
temp.test = "Chompy,Te st,foo";
echo(test.tokenize());
echo(test.tokenize(","));
}
Output:
PHP Code:
Chompy,Te,st,foo // size() = 4
Chompy,"Te st",foo // size() = 3
So it should be
ACCESS.tokenize(","); instead of
ACCESS.tokenize(); in the
hasAccess(acc) function