summaryrefslogtreecommitdiffstats
path: root/idrop-web/grails-app/taglib
diff options
context:
space:
mode:
authormconway <michael.c.conway@gmail.com>2012-11-15 20:31:43 (GMT)
committer mconway <michael.c.conway@gmail.com>2012-11-15 20:31:43 (GMT)
commit99e68c2f17821b250c66c3c1cb16a4cf9d7ef9cf (patch)
tree75af52099209e9f73101f04b2523f64a2b625ee1 /idrop-web/grails-app/taglib
parent383412ae87db25764c33e00ce9ef061f3a5753cb (diff)
downloadQCG-Data-99e68c2f17821b250c66c3c1cb16a4cf9d7ef9cf.zip
QCG-Data-99e68c2f17821b250c66c3c1cb16a4cf9d7ef9cf.tar.gz
QCG-Data-99e68c2f17821b250c66c3c1cb16a4cf9d7ef9cf.tar.bz2
[#984] add selenium subproject
Diffstat (limited to 'idrop-web/grails-app/taglib')
-rw-r--r--idrop-web/grails-app/taglib/idrop/web2/AuthUserTagTagLib.groovy13
1 files changed, 13 insertions, 0 deletions
diff --git a/idrop-web/grails-app/taglib/idrop/web2/AuthUserTagTagLib.groovy b/idrop-web/grails-app/taglib/idrop/web2/AuthUserTagTagLib.groovy
new file mode 100644
index 0000000..f5c4cee
--- /dev/null
+++ b/idrop-web/grails-app/taglib/idrop/web2/AuthUserTagTagLib.groovy
@@ -0,0 +1,13 @@
+package idrop.web2
+
+import org.irods.jargon.core.connection.IRODSAccount;
+
+class AuthUserTagTagLib {
+ def accountInfo = {attrs, body ->
+ IRODSAccount irodsAccount = (IRODSAccount) session["SPRING_SECURITY_CONTEXT"]
+ if (irodsAccount != null) {
+ out << irodsAccount.userName + ":" + irodsAccount.zone
+ }
+ }
+
+}