Commit graph

14 commits

Author SHA1 Message Date
GitLab Bot
60aef5496e Add latest changes from gitlab-org/gitlab@master 2021-11-12 18:12:20 +00:00
GitLab Bot
b51258eac2 Add latest changes from gitlab-org/gitlab@master 2021-07-30 12:10:12 +00:00
GitLab Bot
d193734fb9 Add latest changes from gitlab-org/gitlab@master 2021-05-28 06:10:48 +00:00
GitLab Bot
213bd7e9d3 Add latest changes from gitlab-org/gitlab@master 2021-02-18 12:09:34 +00:00
GitLab Bot
89b770bb38 Add latest changes from gitlab-org/gitlab@master 2021-02-08 18:09:49 +00:00
GitLab Bot
04698e448a Add latest changes from gitlab-org/gitlab@master 2021-01-14 03:10:47 +00:00
GitLab Bot
9b1b702f0f Add latest changes from gitlab-org/gitlab@master 2021-01-13 15:10:40 +00:00
GitLab Bot
01c201bc6a Add latest changes from gitlab-org/gitlab@master 2020-11-10 09:08:45 +00:00
GitLab Bot
2ac4833015 Add latest changes from gitlab-org/gitlab@master 2020-10-08 18:08:32 +00:00
GitLab Bot
80f61b4035 Add latest changes from gitlab-org/gitlab@master 2019-09-18 14:02:45 +00:00
Luke Duncalfe
ba377e91e1 Authorize access before serving project template
Previously, if a user was a guest member of a private project, they
could access the merge request template as we were not checking
permission-levels of the user.

When a issue template is asked for, the user must have :read_issue for
the project; or :read_merge_request when a merge request template is
asked for.

We also now rescue_from FileNotFoundError and handle as 404. This is
because RepoTemplateFinder can raise a FileNotFoundError exception,
which Rails previously handled as a 500.

Handling these in a way that is consistent with
ActiveRecord::RecordNotFound exceptions, within controllers that
inherit from Projects::ApplicationController at least, and returning a
404.

https://gitlab.com/gitlab-org/gitlab-ce/issues/54943
2019-06-11 08:21:04 +12:00
gfyoung
12ee2753c1 Enable even more frozen string in app/controllers
Enables frozen string for some vestigial files as
well as the following:

* app/controllers/projects/**/*.rb
* app/controllers/sherlock/**/*.rb
* app/controllers/snippets/**/*.rb
* app/controllers/users/**/*.rb

Partially addresses #47424.
2018-09-25 22:43:49 -07:00
Lin Jen-Shin
4ee08b77bc Updates from rubocop -a 2018-07-09 21:13:08 +08:00
Felipe Artur
2872672945 Load issues and merge requests templates from repository 2016-08-16 15:50:17 -03:00