Le document suivant contient les résultats de l'inspection CPD CPD 6.13.0.
Fichier | Ligne |
---|---|
fr/paris/lutece/plugins/unittree/web/UnitJspBean.java | 535 |
fr/paris/lutece/plugins/unittree/web/UnitJspBean.java | 940 |
public String getConfirmRemoveUser( HttpServletRequest request ) { String strIdUnit = request.getParameter( PARAMETER_ID_UNIT ); String strIdUser = request.getParameter( PARAMETER_ID_USER ); if ( StringUtils.isBlank( strIdUnit ) || !StringUtils.isNumeric( strIdUnit ) || StringUtils.isBlank( strIdUser ) || !StringUtils.isNumeric( strIdUser ) ) { return AdminMessageService.getMessageUrl( request, Messages.MANDATORY_FIELDS, AdminMessage.TYPE_STOP ); } // Check permissions if ( !_unitService.isAuthorized( strIdUnit, UnitResourceIdService.PERMISSION_REMOVE_USER, getUser( ), UnittreeRBACRecursiveType.PARENT_RECURSIVE ) ) { return AdminMessageService.getMessageUrl( request, Messages.USER_ACCESS_DENIED, AdminMessage.TYPE_STOP ); } |