From: <id...@us...> - 2008-10-07 22:21:10
|
Revision: 4826 http://openuss.svn.sourceforge.net/openuss/?rev=4826&view=rev Author: idueppe Date: 2008-10-07 22:21:05 +0000 (Tue, 07 Oct 2008) Log Message: ----------- bug fix - fixed permission setting for deleting participants Modified Paths: -------------- branches/openuss-plexus-3.1/plexus/plexus-web/src/main/webapp/views/secured/course/participantstable.xhtml Modified: branches/openuss-plexus-3.1/plexus/plexus-web/src/main/webapp/views/secured/course/participantstable.xhtml =================================================================== --- branches/openuss-plexus-3.1/plexus/plexus-web/src/main/webapp/views/secured/course/participantstable.xhtml 2008-10-07 20:43:42 UTC (rev 4825) +++ branches/openuss-plexus-3.1/plexus/plexus-web/src/main/webapp/views/secured/course/participantstable.xhtml 2008-10-07 22:21:05 UTC (rev 4826) @@ -3,6 +3,7 @@ xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" + xmlns:s="http://www.openuss.org/jsf-security" xmlns:plexus="http://www.openuss.org/plexus/jsf" xmlns:t="http://myfaces.apache.org/tomahawk" xmlns:o="http://www.openuss.org/jsfcontrols" @@ -39,15 +40,16 @@ <plexus:column header="#{msg.commands_header}"> <plexus:linkProfileIcon user="#{member.userId}"/> - <plexus:command - bean="#{views$secured$course$participants}" - action="delete" - onclick="if (!confirm('#{msg.message_course_remove_member_confirmation} #{member.username}')) return false" - label="#{msg['course_members_delete']}" - title="#{msg['course_members_delete_hint']}" - styleClass="icon_remove" /> + <s:acl domainObject="#{courseInfo}" hasPermission="#{ACL.ASSIST}"> + <plexus:command + bean="#{views$secured$course$participants}" + action="delete" + onclick="if (!confirm('#{msg.message_course_remove_member_confirmation} #{member.username}')) return false" + label="#{msg['course_members_delete']}" + title="#{msg['course_members_delete_hint']}" + styleClass="icon_remove" /> + </s:acl> </plexus:column> - </plexus:dataTable> </ui:composition> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |