Project

General

Profile

Revision 5099

Added by daigle over 10 years ago

Change access section in getaccesscontrol and getdocumentinfo apis to be more eml 2.1.0 compliant. Add a block access option to setaccess api.

View differences:

workflowAccess.xsl
50 50
				<div class="col permissions_col">Permission</div>
51 51
			</div>
52 52
			<xsl:choose>
53
			<xsl:when test="acl/resource/@order = 'allowFirst'">
54
				<xsl:for-each select="acl/resource/*/principal">
53
			<xsl:when test="/access/@order = 'denyFirst'">
54
				<xsl:for-each select="/access/allow | /acc:access/deny">
55 55
					<div>
56 56
						<xsl:attribute name="class">
57 57
							<xsl:choose>
......
59 59
								<xsl:when test="position() mod 2 = 0">row row-even</xsl:when>
60 60
							</xsl:choose>
61 61
						</xsl:attribute>
62
						<div class="col access_order_col">allowFirst</div>
62
						<div class="col access_order_col">
63
							<xsl:value-of select="../@order" />
64
						</div>
63 65
						<div class="col access_type_col">
64 66
							<xsl:value-of select="local-name(../)" />
65 67
						</div>
66 68
						<div class="col principal_col">
67
							<xsl:value-of select="."/>
69
							<xsl:value-of select="./principal"/>
68 70
						</div>	
69 71
						<div class="col permissions_col">
70
							<xsl:for-each select="../permission">
72
							<xsl:for-each select="./permission">
71 73
								<div class="permission_element">
72 74
									<xsl:if test=". != 'all'">
73 75
										<xsl:value-of select="."/>
......
79 81
				</xsl:for-each>			
80 82
			</xsl:when>
81 83

  
82
			<xsl:when test="acl/resource/@order = 'denyFirst'">
84
			<xsl:when test="acl/resource/@order = 'allowFirst'">
83 85
				<xsl:for-each select="acl/resource/*/principal">
84 86
					<div>
85 87
						<xsl:attribute name="class">

Also available in: Unified diff