Author: sdumitriu Date: 2008-02-15 14:17:15 +0100 (Fri, 15 Feb 2008) New Revision: 7750
Modified: xwiki-platform/xwiki-plugins/trunk/spacemanager/src/main/java/com/xpn/xwiki/plugin/spacemanager/impl/SpaceManagerImpl.java Log: XPSM-6: Integrate the space manager plugin in the XWiki SVN Patch submitted by Marius Florea, applied without changes. Modified: xwiki-platform/xwiki-plugins/trunk/spacemanager/src/main/java/com/xpn/xwiki/plugin/spacemanager/impl/SpaceManagerImpl.java =================================================================== --- xwiki-platform/xwiki-plugins/trunk/spacemanager/src/main/java/com/xpn/xwiki/plugin/spacemanager/impl/SpaceManagerImpl.java 2008-02-15 10:25:34 UTC (rev 7749) +++ xwiki-platform/xwiki-plugins/trunk/spacemanager/src/main/java/com/xpn/xwiki/plugin/spacemanager/impl/SpaceManagerImpl.java 2008-02-15 13:17:15 UTC (rev 7750) @@ -1591,7 +1591,13 @@ toUsers = (String[]) admins.toArray(new String[admins.size()]); } else if (SpaceAction.JOIN.equals(action)) { // send join group confirmation e-mail - toUsers = new String[] { context.getUser() }; + SpaceUserProfile profile = + getSpaceUserProfile(space.getSpaceName(), context.getUser(), context); + if (profile != null && profile.getAllowNotifications()) { + toUsers = new String[] {context.getUser()}; + } else { + return; + } } if (fromUser == null) { _______________________________________________ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications