summaryrefslogtreecommitdiffstats
path: root/idrop-web/grails-app/taglib
diff options
context:
space:
mode:
authorMike Conway <michael.c.conway@gmail.com>2011-11-16 20:42:14 (GMT)
committer Mike Conway <michael.c.conway@gmail.com>2011-11-16 20:42:14 (GMT)
commit38af8dcd85225cf95038d1d3aa78843b8f193405 (patch)
tree370801a4a15c20c91a64f69d55c3bc862e641557 /idrop-web/grails-app/taglib
parent2b383224fc12a98f9af7e3a33c4ba43953b676a8 (diff)
downloadQCG-Data-38af8dcd85225cf95038d1d3aa78843b8f193405.zip
QCG-Data-38af8dcd85225cf95038d1d3aa78843b8f193405.tar.gz
QCG-Data-38af8dcd85225cf95038d1d3aa78843b8f193405.tar.bz2
[#531] DnD and tree cleanup
Diffstat (limited to 'idrop-web/grails-app/taglib')
-rw-r--r--idrop-web/grails-app/taglib/org/irods/mydrop/taglib/AuthTagLib.groovy14
1 files changed, 14 insertions, 0 deletions
diff --git a/idrop-web/grails-app/taglib/org/irods/mydrop/taglib/AuthTagLib.groovy b/idrop-web/grails-app/taglib/org/irods/mydrop/taglib/AuthTagLib.groovy
index 58e03b1..10cc81f 100644
--- a/idrop-web/grails-app/taglib/org/irods/mydrop/taglib/AuthTagLib.groovy
+++ b/idrop-web/grails-app/taglib/org/irods/mydrop/taglib/AuthTagLib.groovy
@@ -21,5 +21,19 @@ class AuthTagLib {
out << body()
}
}
+
+ def isRodsAdmin = { attrs, body ->
+ // add extra check if auth
+ def auth = session["SPRING_SECURITY_CONTEXT"]
+ /* List<GrantedAuthorities> grantedAuthorities = auth.grantedAuthorities
+
+ boolean isRodsAdmin = false;
+ grantedAuthories.each() {it ->
+ if (it == "rodsadmin") {
+ out << body()
+ break
+ }
+ }*/
+ }
}