Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/29/10 20:00:06 (15 years ago)
Author:
bfarka
Message:

fixed bug in RomveUsersFromRoles and fixed some tests (1046)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Services.Authentication Prototype/Persistence/HeuristicLabUserRole.cs

    r3955 r3978  
    77  partial class HeuristicLabUserRole {
    88    public override bool Equals(object obj) {
    9       return ((HeuristicLabUserRole)obj).HeuristicLabRole.Equals(this.HeuristicLabRole) && ((HeuristicLabUserRole)obj).HeuristicLabUser.Equals(this.HeuristicLabUser);
     9        if(this.ID == null ^ ((HeuristicLabUserRole)obj).ID == null )
     10        {
     11          return false;
     12        }
     13        else if (this.ID == null && ((HeuristicLabUserRole)obj).ID == null)
     14        {
     15         return base.Equals(obj);
     16        }
     17        return ((HeuristicLabUserRole)obj).ID.Equals(this.ID);
    1018    }
    1119  }
Note: See TracChangeset for help on using the changeset viewer.