syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject svn commit: r1333069 - /incubator/syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/MembershipModalPage.java
Date Wed, 02 May 2012 14:49:19 GMT
Author: ilgrosso
Date: Wed May  2 14:49:19 2012
New Revision: 1333069

URL: http://svn.apache.org/viewvc?rev=1333069&view=rev
Log:
[SYNCOPE-77] Removing authorizations requisite for Save button

Modified:
    incubator/syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/MembershipModalPage.java

Modified: incubator/syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/MembershipModalPage.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/MembershipModalPage.java?rev=1333069&r1=1333068&r2=1333069&view=diff
==============================================================================
--- incubator/syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/MembershipModalPage.java
(original)
+++ incubator/syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/MembershipModalPage.java
Wed May  2 14:49:19 2012
@@ -22,7 +22,6 @@ import org.apache.wicket.PageReference;
 import org.apache.syncope.console.pages.panels.AttributesPanel;
 import org.apache.wicket.ajax.AjaxRequestTarget;
 import org.apache.wicket.ajax.markup.html.form.AjaxButton;
-import org.apache.wicket.authroles.authorization.strategies.role.metadata.MetaDataRoleAuthorizationStrategy;
 import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
 import org.apache.wicket.markup.html.form.Form;
 import org.apache.wicket.model.CompoundPropertyModel;
@@ -72,11 +71,6 @@ public class MembershipModalPage extends
             }
         };
 
-        String allowedRoles = userTO.getId() == 0
-                ? xmlRolesReader.getAllAllowedRoles("Users", "create")
-                : xmlRolesReader.getAllAllowedRoles("Users", "update");
-        MetaDataRoleAuthorizationStrategy.authorize(submit, RENDER, allowedRoles);
-
         form.add(submit);
 
         //--------------------------------



Mime
View raw message