|
|
@@ -27,8 +27,8 @@ func getMergedPerms(tx backend.BatchTx, userName string) *unifiedRangePermission
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
- readPerms := &adt.IntervalTree{}
|
|
|
- writePerms := &adt.IntervalTree{}
|
|
|
+ readPerms := adt.NewIntervalTree()
|
|
|
+ writePerms := adt.NewIntervalTree()
|
|
|
|
|
|
for _, roleName := range user.Roles {
|
|
|
role := getRole(tx, roleName)
|
|
|
@@ -128,6 +128,6 @@ func (as *authStore) invalidateCachedPerm(userName string) {
|
|
|
}
|
|
|
|
|
|
type unifiedRangePermissions struct {
|
|
|
- readPerms *adt.IntervalTree
|
|
|
- writePerms *adt.IntervalTree
|
|
|
+ readPerms adt.IntervalTree
|
|
|
+ writePerms adt.IntervalTree
|
|
|
}
|