Skip to content

Commit

Permalink
Update cache key for permissions. (#2032)
Browse files Browse the repository at this point in the history
Fixes CV2-5153.
  • Loading branch information
caiosba committed Sep 11, 2024
1 parent b329f37 commit aad7adc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/check_permissions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def permissions(ability = nil, klass = self.class)
if self.class.name == 'Team'
role = User.current.role(self)
role ||= 'authenticated'
cache_key = "team_permissions_#{self.private.to_i}_#{role}_role_20231208120701"
cache_key = "team_permissions_#{self.private.to_i}_#{role}_role_20240911175315"
perms = Rails.cache.read(cache_key) if Rails.cache.exist?(cache_key)
end
if perms.blank?
Expand Down

0 comments on commit aad7adc

Please sign in to comment.