src/main/java/org/edgegallery/appstore/domain/model/releases/Release.java
public void checkPermission(User user, String role) {
        if (!this.getUser().getUserId().equals(user.getUserId()) && StringUtils.isEmpty(role)) {
            throw new PermissionNotAllowedException("operator do not have permission",
                ResponseConst.RET_NO_ACCESS_DELETE_PACKAGE, user.getUserName());

        }
    }
/**
     * check operator permission.
     *
     * @param user the user info of delete package.
     */
check operator permission.
@param user the user info of delete package.
check operator permission . @param user the user info of delete package .
public void checkPermission(User user, String role) {
        if (!this.getUser().getUserId().equals(user.getUserId()) && StringUtils.isEmpty(role)) {
            throw new PermissionNotAllowedException("operator do not have permission",
                ResponseConst.RET_NO_ACCESS_DELETE_PACKAGE, user.getUserName());
        }
    }
public void checkPermission ( User user , String role ) { if ( ! this . getUser ( ) . getUserId ( ) . equals ( user . getUserId ( ) ) && StringUtils . isEmpty ( role ) ) { throw new PermissionNotAllowedException ( "operator do not have permission" , ResponseConst . RET_NO_ACCESS_DELETE_PACKAGE , user . getUserName ( ) ) ; } }
check operator permission.
check operator permission .