Author: ludovic
Date: 2008-01-12 01:03:39 +0100 (Sat, 12 Jan 2008)
New Revision: 6792

Modified:
   
xwiki-products/curriki/trunk/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/impl/SpaceManagerImpl.java
Log:
CURRIKI-1345 Rights in groups implementation

Modified: 
xwiki-products/curriki/trunk/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/impl/SpaceManagerImpl.java
===================================================================
--- 
xwiki-products/curriki/trunk/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/impl/SpaceManagerImpl.java
    2008-01-11 23:56:40 UTC (rev 6791)
+++ 
xwiki-products/curriki/trunk/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/impl/SpaceManagerImpl.java
    2008-01-12 00:03:39 UTC (rev 6792)
@@ -354,9 +354,7 @@
             addAdmin(newspace.getSpaceName(), context.getUser(), context);
             addMember(newspace.getSpaceName(), context.getUser(), context);
 
-            giveRightToGroup( newspace.getSpaceName(), getAdminGroupName( 
newspace.getSpaceName() ), "view", true, context );
             giveRightToGroup( newspace.getSpaceName(), getAdminGroupName( 
newspace.getSpaceName() ), "edit", true, context );
-            giveRightToGroup( newspace.getSpaceName(), getMemberGroupName( 
newspace.getSpaceName() ), "view", true, context );
         } catch (XWikiException e) {
             throw new SpaceManagerException(e);
         }
@@ -399,9 +397,7 @@
             addAdmin(newspace.getSpaceName(), context.getUser(), context);
             addMember(newspace.getSpaceName(), context.getUser(), context);
 
-            giveRightToGroup( newspace.getSpaceName(), getAdminGroupName( 
newspace.getSpaceName() ), "view", true, context );
             giveRightToGroup( newspace.getSpaceName(), getAdminGroupName( 
newspace.getSpaceName() ), "edit", true, context );
-            giveRightToGroup( newspace.getSpaceName(), getMemberGroupName( 
newspace.getSpaceName() ), "view", true, context );
         } catch (XWikiException e) {
             throw new SpaceManagerException(e);
         }
@@ -460,9 +456,7 @@
             // we need to add the creator as a member and as an admin
             addAdmin(newspace.getSpaceName(), context.getUser(), context);
             addMember(newspace.getSpaceName(), context.getUser(), context);
-            giveRightToGroup( newspace.getSpaceName(), getAdminGroupName( 
newspace.getSpaceName() ), "view", true, context );
             giveRightToGroup( newspace.getSpaceName(), getAdminGroupName( 
newspace.getSpaceName() ), "edit", true, context );
-            giveRightToGroup( newspace.getSpaceName(), getMemberGroupName( 
newspace.getSpaceName() ), "view", true, context );
         } catch (XWikiException e) {
             throw new SpaceManagerException(e);
         }

_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to