git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a "negate result" option
[sfa.git]
/
sfatables
/
matches
/
hrn.xml
diff --git
a/sfatables/matches/hrn.xml
b/sfatables/matches/hrn.xml
index
e6444e8
..
6da2e70
100644
(file)
--- a/
sfatables/matches/hrn.xml
+++ b/
sfatables/matches/hrn.xml
@@
-1,14
+1,13
@@
<!--
<!--
-"
sfa-inpu
t" specifies the subset of the requestor context that this match needs to see. It is specified as an xpath expression.
+"
contex
t" specifies the subset of the requestor context that this match needs to see. It is specified as an xpath expression.
For this simple match, we just need to look at sfa-input.
For this simple match, we just need to look at sfa-input.
-"rule" specifies an xpath/xquery expression that evaluates the match. In this case, we just check if the requestor's HRN is the same
-as the one matched by this rule.
-
+"rule" specifies a set of arguments that the match accepts.
-->
<match name="hrn">
-->
<match name="hrn">
- <context select="//sfa//user/hrn"/>
+ <!-- Empty context. We _always_ get the hrn of the current user -->
+ <context select="//sfa/current/user@hrn"/>
<rule>
<argument>
<name>user-hrn</name>
<rule>
<argument>
<name>user-hrn</name>