Created
December 28, 2012 09:55
-
-
Save ScullWM/4396517 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function isAccessOk((array)$abonnements, (array)$userGroupes) | |
{ | |
$abonnements = array_flip($abonnements); | |
$userGrp = array_flip($userGroupes); | |
$at = array_merge($abos, $userGroupes); | |
return (bool)(count($at)<(count($abonnements)+count($userGroupes))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment