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 Allow use of legacy triggers with feature flag 2019-07-15 15:05:22 +02:00
clusters Refactor: model errors for multi cluster validation 2019-07-11 17:22:58 +10:00
concerns Refactor: model errors for multi cluster validation 2019-07-11 17:22:58 +10:00
namespace Expose namespace storage statistics with GraphQL 2019-08-22 22:08:28 +00:00
project_policy
award_emoji_policy.rb GraphQL mutations for add, remove and toggle emoji 2019-06-28 12:03:33 +12:00
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 Restrict slash commands to users who can log in 2019-07-19 11:32:06 +02:00
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 Enforce authorizations for non-nullable fields 2019-06-21 13:00:50 +02:00
suggestion_policy.rb
user_policy.rb