Author: sdeboer Date: 2009-08-25 16:51:12 +0200 (Tue, 25 Aug 2009) New Revision: 38145
Added: mmbase/trunk/applications/cloudcontext/src/main/resources/META-INF/tags/mm/security/maywrite.tagx Modified: mmbase/trunk/applications/cloudcontext/src/main/resources/META-INF/security.tld Log: new tag: maywrite Modified: mmbase/trunk/applications/cloudcontext/src/main/resources/META-INF/security.tld =================================================================== --- mmbase/trunk/applications/cloudcontext/src/main/resources/META-INF/security.tld 2009-08-25 14:36:21 UTC (rev 38144) +++ mmbase/trunk/applications/cloudcontext/src/main/resources/META-INF/security.tld 2009-08-25 14:51:12 UTC (rev 38145) @@ -28,5 +28,8 @@ <path>/META-INF/tags/mm/security/waitForCacheInvalidation.tagx</path> </tag-file> - + <tag-file> + <name>maywrite</name> + <path>/META-INF/tags/mm/security/maywrite.tagx</path> + </tag-file> </taglib> Added: mmbase/trunk/applications/cloudcontext/src/main/resources/META-INF/tags/mm/security/maywrite.tagx =================================================================== --- mmbase/trunk/applications/cloudcontext/src/main/resources/META-INF/tags/mm/security/maywrite.tagx (rev 0) +++ mmbase/trunk/applications/cloudcontext/src/main/resources/META-INF/tags/mm/security/maywrite.tagx 2009-08-25 14:51:12 UTC (rev 38145) @@ -0,0 +1,17 @@ +<jsp:root version="2.0" + xmlns:jsp="http://java.sun.com/JSP/Page" + xmlns:c="http://java.sun.com/jsp/jstl/core" + xmlns:mm="http://www.mmbase.org/mmbase-taglib-2.0"> + <mm:field name="context"> + <mm:isnotempty> + <mm:functioncontainer> + <mm:param name="operation">write</mm:param> + <mm:param name="usertocheck"><mm:cloudinfo type="usernode" /></mm:param> + <mm:function id="may" name="may" write="false" /> + </mm:functioncontainer> + </mm:isnotempty> + </mm:field> + <c:if test="${empty may or may}"> + <jsp:doBody /> + </c:if> +</jsp:root> _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs