gitlab-org--gitlab-foss/app/views/shared
Douwe Maan 077e32740c Merge branch 'backport-view-condition-improvement-from-ee-460' into 'master'
Fix permission checks in member row (backport from gitlab-org/gitlab-ee!460)

## What does this MR do?

It improves the check we use to display or not the members' access and controls in the members list.

## Are there points in the code the reviewer needs to double check?

No, I replaced an helper with just a permission check so I think it's a better solution.

## Why was this MR needed?

There were a spec failure in gitlab-org/gitlab-ee!460 because of the refactor done in the "request access" MR.

## What are the relevant issue numbers?

None.

## Does this MR meet the acceptance criteria?

- No CHANGELOG needed
- [x] Tests
  - [x] All builds are passing
- [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [x] Branch has no merge conflicts with `master` (if you do - rebase it please)
- [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

See merge request !4670
2016-06-16 09:54:53 +00:00
..
groups
icons
issuable
members Fix permission checks in member row 2016-06-15 18:17:45 +02:00
milestones
projects
snippets
web_hooks
_choose_group_avatar_button.html.haml
_clone_panel.html.haml
_commit_message_container.html.haml
_confirm_modal.html.haml
_event_filter.html.haml
_field.html.haml
_file_highlight.html.haml
_group_form.html.haml
_group_tips.html.haml
_import_form.html.haml
_issues.html.haml
_label_row.html.haml
_labels_row.html.haml
_logo.svg
_merge_requests.html.haml
_milestone_expired.html.haml
_milestones_filter.html.haml
_new_commit_form.html.haml
_new_project_item_select.html.haml
_no_password.html.haml
_no_ssh.html.haml
_outdated_browser.html.haml
_project_limit.html.haml
_promo.html.haml
_ref_switcher.html.haml
_service_settings.html.haml
_show_aside.html.haml
_sort_dropdown.html.haml
_visibility_level.html.haml
_visibility_radios.html.haml