|
2 | 2 |
|
3 | 3 | #repository-tabs
|
4 | 4 | %ul
|
5 |
| - - if user_allowed_to(:view_deployment_keys, @repository.project) |
| 5 | + - if User.current.git_allowed_to?(:view_deployment_keys, @repository) |
6 | 6 | %li{ id: 'tab-repository_deployment_credentials' }= link_to label_with_icon(l(:label_deployment_credentials), 'fa-lock'), repository_deployment_credentials_path(@repository)
|
7 | 7 |
|
8 |
| - - if user_allowed_to(:view_repository_git_notifications, @repository.project) |
| 8 | + - if User.current.git_allowed_to?(:view_repository_git_notifications, @repository) |
9 | 9 | %li{ id: 'tab-repository_git_notifications' }= link_to label_with_icon(l(:label_git_notifications), 'fa-bullhorn'), repository_git_notifications_path(@repository)
|
10 | 10 |
|
11 |
| - - if user_allowed_to(:view_repository_mirrors, @repository.project) |
| 11 | + - if User.current.git_allowed_to?(:view_repository_mirrors, @repository) |
12 | 12 | %li{ id: 'tab-repository_mirrors' }= link_to label_with_icon(l(:label_repository_mirrors), 'fa-cloud-upload'), repository_mirrors_path(@repository)
|
13 | 13 |
|
14 |
| - - if user_allowed_to(:view_repository_post_receive_urls, @repository.project) |
| 14 | + - if User.current.git_allowed_to?(:view_repository_post_receive_urls, @repository) |
15 | 15 | %li{ id: 'tab-repository_post_receive_urls' }= link_to label_with_icon(l(:label_post_receive_urls), 'fa-external-link'), repository_post_receive_urls_path(@repository)
|
16 | 16 |
|
17 |
| - - if user_allowed_to(:view_repository_git_config_keys, @repository.project) |
| 17 | + - if User.current.git_allowed_to?(:view_repository_git_config_keys, @repository) |
18 | 18 | %li{ id: 'tab-repository_git_config_keys' }= link_to label_with_icon(l(:label_git_config_keys), 'fa-th-list'), repository_git_config_keys_path(@repository)
|
19 | 19 |
|
20 |
| - - if user_allowed_to(:view_repository_protected_branches, @repository.project) |
| 20 | + - if User.current.git_allowed_to?(:view_repository_protected_branches, @repository) |
21 | 21 | %li{ id: 'tab-repository_protected_branches' }= link_to label_with_icon(l(:label_protected_branches), 'fa-shield'), repository_protected_branches_path(@repository)
|
22 | 22 |
|
23 | 23 | = render 'javascript'
|
0 commit comments