Skip to content

Commit

Permalink
Fix TokenParser always returns original associated-group-names event …
Browse files Browse the repository at this point in the history
…when renamed by ObjectSiteSecurity
  • Loading branch information
Christian Zuellig committed Jul 16, 2021
1 parent 91eb6ea commit e9fd7a0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public AssociatedGroupToken(Web web, AssociatedGroupType groupType)
: base(web, $"{{associated{groupType.ToString().TrimEnd('s')}group}}")
{
_groupType = groupType;
IsCacheable = false; //since TokenParser does not Update TokenDictionary in BuildTokenCache if IsCacheable=true and therefore not get the new group names after ObjectSiteSecurity renamed groups
}

internal AssociatedGroupType GroupType { get => _groupType; set => _groupType = value; }
Expand Down

0 comments on commit e9fd7a0

Please sign in to comment.