Skip to content

Commit

Permalink
Use $navigation-restrictions where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
HeikoTheissen committed Dec 19, 2024
1 parent e8742bd commit 7fb4010
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/V4-CSDL-to-OpenAPI.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -3176,12 +3176,12 @@
</xsl:variable>

<xsl:variable name="updateRestrictions" select="$navigation-restrictions/edm:PropertyValue[@Property='UpdateRestrictions'] |
//edm:Annotation[current()[self::edm:EntitySet|self::edm:Singleton] and
//edm:Annotation[not($navigation-restrictions/edm:PropertyValue[@Property='UpdateRestrictions']) and
not(@Qualifier) and @p2:Term='Org.OData.Capabilities.V1.UpdateRestrictions' and
$target-path=concat(@path-to-target,@target)]" />
<xsl:variable name="updatable" select="not($updateRestrictions/edm:Record/edm:PropertyValue[@Property='Updatable' and @Bool='false'])" />
<xsl:variable name="deleteRestrictions" select="$navigation-restrictions/edm:PropertyValue[@Property='DeleteRestrictions'] |
//edm:Annotation[current()[self::edm:EntitySet|self::edm:Singleton] and
//edm:Annotation[not($navigation-restrictions/edm:PropertyValue[@Property='DeleteRestrictions']) and
not(@Qualifier) and @p2:Term='Org.OData.Capabilities.V1.DeleteRestrictions' and
$target-path=concat(@path-to-target,@target)]" />
<xsl:variable name="deletable" select="not($deleteRestrictions/edm:Record/edm:PropertyValue[@Property='Deletable' and @Bool='false'])" />
Expand Down

0 comments on commit 7fb4010

Please sign in to comment.