Skip to content

Fix a `wiki_page` factory instantiation for the case when project's namespace is a group

username-removed-128633 requested to merge 37729-fix-wiki-page-let into master

What does this MR do?

This revert a use of the wiki_page factory to use WikiPages::CreateService instead since WikiPages::CreateService passes the current_user when instantiating a ProjectWiki (i.e. project_wiki = ProjectWiki.new(@project, current_user)) while the wiki_page factory default to project.owner (i.e. @wiki ||= ProjectWiki.new(self, self.owner)).

Why was this MR needed?

Because master is broken.

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #37729 (closed)

Edited by username-removed-128633

Merge request reports

Loading