@Override public Profile updateProfile(Profile profile) { if (!authService.isUserAuthorized(ROLE_CURATOR, profile)) { throw new NotAuthorizedException(); } return profilePersister.update(profile); }
@Override public Profile updateProfile(Profile profile) { if (!authService.isUserAuthorized(ROLE_CURATOR, profile)) { throw new NotAuthorizedException(); } return profilePersister.update(profile); }