132133134135136137138139140141142
if ( authorizedRoles != null ) { Account account = WebApplication.get().getLoggedInAccount(); if ( account != null ) { for ( Role role : authorizedRoles.roles() ) { if ( account.getRole() == role ) { isAuthorized = true; break;