diff options
author | UbitUmarov | 2016-08-23 23:48:07 +0100 |
---|---|---|
committer | UbitUmarov | 2016-08-23 23:48:07 +0100 |
commit | 7a2256a8cdbd5c9733f2af38c12635f37b871e06 (patch) | |
tree | 447ef859670d6eafd26107cccd558a244dd8d3c3 /OpenSim/Addons/Groups | |
parent | coment some debug messages (diff) | |
download | opensim-SC_OLD-7a2256a8cdbd5c9733f2af38c12635f37b871e06.zip opensim-SC_OLD-7a2256a8cdbd5c9733f2af38c12635f37b871e06.tar.gz opensim-SC_OLD-7a2256a8cdbd5c9733f2af38c12635f37b871e06.tar.bz2 opensim-SC_OLD-7a2256a8cdbd5c9733f2af38c12635f37b871e06.tar.xz |
change odd condition on groupsV2 add to role
Diffstat (limited to 'OpenSim/Addons/Groups')
-rw-r--r-- | OpenSim/Addons/Groups/Service/GroupsService.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Addons/Groups/Service/GroupsService.cs b/OpenSim/Addons/Groups/Service/GroupsService.cs index 07641ef..ae0518c 100644 --- a/OpenSim/Addons/Groups/Service/GroupsService.cs +++ b/OpenSim/Addons/Groups/Service/GroupsService.cs | |||
@@ -486,7 +486,7 @@ namespace OpenSim.Groups | |||
486 | // check permissions | 486 | // check permissions |
487 | bool limited = HasPower(RequestingAgentID, GroupID, GroupPowers.AssignMemberLimited); | 487 | bool limited = HasPower(RequestingAgentID, GroupID, GroupPowers.AssignMemberLimited); |
488 | bool unlimited = HasPower(RequestingAgentID, GroupID, GroupPowers.AssignMember) | IsOwner(RequestingAgentID, GroupID); | 488 | bool unlimited = HasPower(RequestingAgentID, GroupID, GroupPowers.AssignMember) | IsOwner(RequestingAgentID, GroupID); |
489 | if (!limited || !unlimited) | 489 | if (!limited && !unlimited) |
490 | { | 490 | { |
491 | m_log.DebugFormat("[Groups]: ({0}) Attempt at assigning {1} to role {2} denied because of lack of permission", RequestingAgentID, AgentID, RoleID); | 491 | m_log.DebugFormat("[Groups]: ({0}) Attempt at assigning {1} to role {2} denied because of lack of permission", RequestingAgentID, AgentID, RoleID); |
492 | return false; | 492 | return false; |