35b8f103a8
This changes the permission check so it uses the policy on Noteable instead of Project. This prevents bypassing of rules defined in Noteable for locked discussions and confidential issues. Also rechecks permissions when reply_to_discussion_id is provided since the discussion_id may be from a different noteable. |
||
---|---|---|
.. | ||
application_setting | ||
ci | ||
clusters | ||
concerns | ||
base_policy_spec.rb | ||
deploy_key_policy_spec.rb | ||
deploy_token_policy_spec.rb | ||
environment_policy_spec.rb | ||
global_policy_spec.rb | ||
group_policy_spec.rb | ||
issuable_policy_spec.rb | ||
issue_policy_spec.rb | ||
namespace_policy_spec.rb | ||
note_policy_spec.rb | ||
personal_snippet_policy_spec.rb | ||
project_policy_spec.rb | ||
project_snippet_policy_spec.rb | ||
protected_branch_policy_spec.rb | ||
user_policy_spec.rb |