Pārlūkot izejas kodu

oops let loop go on. Thanks Tampa

UbitUmarov 5 dienas atpakaļ
vecāks
revīzija
2d3140fc9a
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 3 2
      OpenSim/Addons/Groups/Service/GroupsService.cs

+ 3 - 2
OpenSim/Addons/Groups/Service/GroupsService.cs

@@ -1072,10 +1072,11 @@ namespace OpenSim.Groups
                 if (role is null)
                 {
                     m_log.Warn($"[GROUPSERVICE] role with id {rdata.RoleID} is null");
-                    return false;
+                    continue;
                 }
 
-                return (UInt64.Parse(role.Data["Powers"]) & (ulong)power) != 0;
+                if ((UInt64.Parse(role.Data["Powers"]) & (ulong)power) != 0)
+                    return true;
             }
             return false;
         }