protected boolean hasPrivileges ( Privilege [ ] privileges ) { for ( Privilege p : privileges ) { if ( ! contains ( this . privileges , p ) ) { return false ; } } return true ; }
Tests given privileges .