class MonitoringOfficerPermissionRules extends BasePermissionRules {

    @PermissionRule(
            value = "GET_MONITORING_OFFICER_PROJECTS",
            description = "Monitoring officers can get their own projects."
    )
    public boolean monitoringOfficerCanSeeTheirOwnProjects(UserResource monitoringOfficerUser, UserResource user) {
        return user.getId().equals(monitoringOfficerUser.getId()) && user.hasRole(MONITORING_OFFICER);
    }

}