@ -36,7 +36,7 @@ class User::ProjectAuthorizationCache
def cache(actions)
Array(actions).each do |action|
allowed_project_ids = Project.where(Project.allowed_to_condition(user, action)).pluck(:id)
allowed_project_ids = Project.allowed_to(user, action).pluck(:id)
projects_by_actions[normalized_permission_name(action)] = allowed_project_ids
end