gitlab-org--gitlab-foss/app/policies
Stan Hu 6fa5f510e8 Guard against deleted project feature entry
In https://gitlab.com/gitlab-org/gitlab-ce/issues/66482, we see that a
project's `project_feature` association may be lazily loaded and hence
return `nil` if the entry is deleted if the `Project` is already loaded
in memory. To ensure we don't fail hard when this happens, assume all
features are disabled.

We can fix this issue by eager loading the `project_feature` in
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/32169, but we
shouldn't have to depend on that.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/66482
2019-08-26 13:37:42 -07:00
..
application_setting
ci
clusters
concerns
namespace Expose namespace storage statistics with GraphQL 2019-08-22 22:08:28 +00:00
project_policy
award_emoji_policy.rb
base_policy.rb
board_policy.rb
commit_policy.rb
commit_status_policy.rb
container_repository_policy.rb
deploy_key_policy.rb
deploy_token_policy.rb
deployment_policy.rb
environment_policy.rb
external_issue_policy.rb
global_policy.rb
group_label_policy.rb
group_member_policy.rb
group_policy.rb Expose namespace storage statistics with GraphQL 2019-08-22 22:08:28 +00:00
identity_provider_policy.rb
issuable_policy.rb
issue_policy.rb
merge_request_policy.rb
milestone_policy.rb
namespace_policy.rb Expose namespace storage statistics with GraphQL 2019-08-22 22:08:28 +00:00
nil_policy.rb
note_policy.rb
personal_snippet_policy.rb
project_label_policy.rb
project_member_policy.rb
project_policy.rb Guard against deleted project feature entry 2019-08-26 13:37:42 -07:00
project_snippet_policy.rb
project_statistics_policy.rb
protected_branch_policy.rb
release_policy.rb
repository_policy.rb
suggestion_policy.rb
user_policy.rb