Skip to content

Instantly share code, notes, and snippets.

@distributi0n
Created September 26, 2017 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save distributi0n/69ab6a253e2045027948efc06e426b97 to your computer and use it in GitHub Desktop.
Save distributi0n/69ab6a253e2045027948efc06e426b97 to your computer and use it in GitHub Desktop.
public function hasPermissions($permissionArray) {
$count = 0;
foreach ($permission in explode(',', $permissionArray)) {
if ($this->hasPermission($permission))
$count++;
}
return $count > 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment