-
- Downloads
There was an error fetching the commit references. Please try again later.
Fixed bug when external wiki is enabled
When the external wiki is enabled, the internal wiki link is replaced by the external wiki url. But the internal wiki is still accessible. In this change the external wiki will have its own tab in the sidebar and only if the services are disabled the tab (and access rights) will not be displayed.
Showing
- app/helpers/external_wiki_helper.rb 0 additions, 12 deletionsapp/helpers/external_wiki_helper.rb
- app/helpers/projects_helper.rb 9 additions, 4 deletionsapp/helpers/projects_helper.rb
- app/policies/project_policy.rb 1 addition, 1 deletionapp/policies/project_policy.rb
- app/views/layouts/nav/sidebar/_project.html.haml 18 additions, 3 deletionsapp/views/layouts/nav/sidebar/_project.html.haml
- app/views/projects/blob/viewers/_readme.html.haml 1 addition, 1 deletionapp/views/projects/blob/viewers/_readme.html.haml
- app/views/projects/wikis/pages.html.haml 1 addition, 1 deletionapp/views/projects/wikis/pages.html.haml
- app/views/projects/wikis/show.html.haml 1 addition, 1 deletionapp/views/projects/wikis/show.html.haml
- changelogs/unreleased/security-fix-wiki-access-rights-with-external-wiki-enabled.yml 5 additions, 0 deletions...ity-fix-wiki-access-rights-with-external-wiki-enabled.yml
- locale/gitlab.pot 3 additions, 0 deletionslocale/gitlab.pot
- spec/helpers/projects_helper_spec.rb 20 additions, 0 deletionsspec/helpers/projects_helper_spec.rb
- spec/models/ability_spec.rb 0 additions, 1 deletionspec/models/ability_spec.rb
- spec/models/project_services/external_wiki_service_spec.rb 0 additions, 21 deletionsspec/models/project_services/external_wiki_service_spec.rb
- spec/policies/project_policy_spec.rb 18 additions, 6 deletionsspec/policies/project_policy_spec.rb
- spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb 54 additions, 0 deletionsspec/views/layouts/nav/sidebar/_project.html.haml_spec.rb
app/helpers/external_wiki_helper.rb
deleted
100644 → 0
Please register or sign in to comment