summaryrefslogtreecommitdiff
path: root/app/controllers/snippets
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@13-2-stable-eeGitLab Bot2020-07-201-0/+7
|
* Add latest changes from gitlab-org/gitlab@13-1-stable-eeGitLab Bot2020-06-181-0/+22
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-01-231-1/+1
|
* Change block parameter name to params52123-issuable-actions-notesfinder-pderichsPatrick Derichs2019-08-011-2/+2
|
* Use NotesFinder in IssuableActions modulePatrick Derichs2019-08-011-1/+3
| | | | | | | | | | Remove project from NotesFinder constructor Add project parameter to specs Also look for methods in private scope Fix specs to match new NotesFinder constructor
* Correctly check permissions when creating snippet notesMarkus Koller2019-06-061-2/+6
| | | | | | | | | | In the Snippets::NotesController the noteable was resolved and authorized through the :snippet_id, so by passing a :target_id for a different snippet it was possible to create a note on a snippet where the user would be unauthorized to do so otherwise. This fixes the problem by ignoring the :target_id and :target_type from the request, and using the same noteable for creation and authorization.
* Refactor params for notes_actionsHeinrich Lee Yu2019-02-231-4/+0
| | | | | | | Removes unneeded params from permitted list This also fixes commenting on commits with a hash starting with a large number
* Enable even more frozen string in app/controllersgfyoung2018-09-251-0/+2
| | | | | | | | | | | | 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.
* Disable existing offenses for the CodeReuse copsYorick Peterse2018-09-111-0/+2
| | | | | This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
* Show the status of a user in interactionsBob Van Landuyt2018-07-301-1/+1
| | | | | | | | | | | | | | | The status is shown for - The author of a commit when viewing a commit - Notes on a commit (regular/diff) - The user that triggered a pipeline when viewing a pipeline - The author of a merge request when viewing a merge request - The author of notes on a merge request (regular/diff) - The author of an issue when viewing an issue - The author of notes on an issue - The author of a snippet when viewing a snippet - The author of notes on a snippet - A user's profile page - The list of members of a group/user
* Make sure NotesActions#noteable returns a Noteable in the update actiondm-notes-actions-noteable-for-updateDouwe Maan2017-11-161-0/+1
|
* Support comments for personal snippetsJarka Kadlecova2017-05-051-9/+0
|
* Display comments for personal snippets12910-personal-snippets-notes-showJarka Kadlecova2017-05-021-0/+44