diff options
author | Diva Canto | 2013-02-25 10:24:28 -0800 |
---|---|---|
committer | Diva Canto | 2013-02-25 10:24:28 -0800 |
commit | f7aa018a783d2e04cdba6d23b9012695f1554061 (patch) | |
tree | 2cb1c0c4b454d6b90c4e0abef86d196cc7e9cda9 /OpenSim/Addons/Groups/Service/GroupsService.cs | |
parent | More clarification on the [Groups] section (diff) | |
download | opensim-SC_OLD-f7aa018a783d2e04cdba6d23b9012695f1554061.zip opensim-SC_OLD-f7aa018a783d2e04cdba6d23b9012695f1554061.tar.gz opensim-SC_OLD-f7aa018a783d2e04cdba6d23b9012695f1554061.tar.bz2 opensim-SC_OLD-f7aa018a783d2e04cdba6d23b9012695f1554061.tar.xz |
Fixes mantis #6551 -- misspelled key name. Also fixed an issue with the roles cache.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Addons/Groups/Service/GroupsService.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Addons/Groups/Service/GroupsService.cs b/OpenSim/Addons/Groups/Service/GroupsService.cs index fc567dd..0668870 100644 --- a/OpenSim/Addons/Groups/Service/GroupsService.cs +++ b/OpenSim/Addons/Groups/Service/GroupsService.cs | |||
@@ -785,10 +785,16 @@ namespace OpenSim.Groups | |||
785 | RoleData data = m_Database.RetrieveRole(groupID, roleID); | 785 | RoleData data = m_Database.RetrieveRole(groupID, roleID); |
786 | 786 | ||
787 | if (add && data != null) // it already exists, can't create | 787 | if (add && data != null) // it already exists, can't create |
788 | { | ||
789 | m_log.DebugFormat("[Groups]: Group {0} already exists. Can't create it again", groupID); | ||
788 | return false; | 790 | return false; |
791 | } | ||
789 | 792 | ||
790 | if (!add && data == null) // it deosn't exist, can't update | 793 | if (!add && data == null) // it deosn't exist, can't update |
794 | { | ||
795 | m_log.DebugFormat("[Groups]: Group {0} doesn't exist. Can't update it", groupID); | ||
791 | return false; | 796 | return false; |
797 | } | ||
792 | 798 | ||
793 | if (add) | 799 | if (add) |
794 | data = new RoleData(); | 800 | data = new RoleData(); |