Function hasEditOwnRightsForAllElements

  • JMap.Form.hasEditOwnRightsForAllElements

    Returns true if current user has the right to edit all given elements.

    Parameters

    Returns boolean

    Example

    // returns true if current user has the right to edit all given elements
    JMap.Form.hasEditOwnRightsForAllElements({
    layerId: 3,
    formId: 1,
    elements: [{
    id: 3,
    attributeValueByName: {
    author: "administrator",
    jmap_id: 3,
    color: "white",
    type: "tree"
    }
    }, {
    id: 4,
    attributeValueByName: {
    author: "administrator",
    jmap_id: 4,
    color: "red",
    type: "tree"
    }
    }]
    })