<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/gitlab/gitlab-ce.git/lib/api/project_snippets.rb, branch patch-14</title>
<subtitle>gitlab.com: gitlab-org/gitlab-ce.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/'/>
<entry>
<title>Spam check and reCAPTCHA improvements</title>
<updated>2017-02-21T16:32:49+00:00</updated>
<author>
<name>Oswaldo Ferreira</name>
<email>oswaldo@gitlab.com</email>
</author>
<published>2017-02-14T19:07:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=2ace39f2420abf018ceef6aaad52e4917bcbab7d'/>
<id>2ace39f2420abf018ceef6aaad52e4917bcbab7d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Check public snippets for spam</title>
<updated>2017-02-02T10:23:51+00:00</updated>
<author>
<name>Sean McGivern</name>
<email>sean@gitlab.com</email>
</author>
<published>2017-02-01T18:15:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=c63194ce6f952173649d7de4038aa96348e90565'/>
<id>c63194ce6f952173649d7de4038aa96348e90565</id>
<content type='text'>
Apply the same spam checks to public snippets (either personal snippets
that are public, or public snippets on public projects) as to issues on
public projects.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Apply the same spam checks to public snippets (either personal snippets
that are public, or public snippets on public projects) as to issues on
public projects.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use the pagination helper in the API</title>
<updated>2016-12-04T17:11:19+00:00</updated>
<author>
<name>Robert Schilling</name>
<email>rschilling@student.tugraz.at</email>
</author>
<published>2016-12-04T17:11:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=74c8669b0a96b6afcb41ce5e09b147c7309ecbeb'/>
<id>74c8669b0a96b6afcb41ce5e09b147c7309ecbeb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Grapify the projects snippet API</title>
<updated>2016-11-21T16:25:34+00:00</updated>
<author>
<name>Robert Schilling</name>
<email>rschilling@student.tugraz.at</email>
</author>
<published>2016-11-21T14:06:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=b7bf1f3a9d8c406024a212e6098f049334cda8e3'/>
<id>b7bf1f3a9d8c406024a212e6098f049334cda8e3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Prevent private snippets in public/internal projects from being leaked via API</title>
<updated>2016-04-25T19:02:06+00:00</updated>
<author>
<name>Stan Hu</name>
<email>stanhu@gmail.com</email>
</author>
<published>2016-04-25T04:45:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=d5267dfd0dac8e4cab4919bf8aca611de3a5497b'/>
<id>d5267dfd0dac8e4cab4919bf8aca611de3a5497b</id>
<content type='text'>
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/15580
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/15580
</pre>
</div>
</content>
</entry>
<entry>
<title>Rename abilities to correspond contoller/model action names</title>
<updated>2015-06-26T13:55:56+00:00</updated>
<author>
<name>Dmitriy Zaporozhets</name>
<email>dmitriy.zaporozhets@gmail.com</email>
</author>
<published>2015-06-26T13:55:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=342d5537091e61c1fc52f3e54df926159f326eb8'/>
<id>342d5537091e61c1fc52f3e54df926159f326eb8</id>
<content type='text'>
write_ was renamed to create_
modify_  was renamed to update_

So now in update action we have next code

def create
  can?(current_user, :create_issue, @issue)
end

def update
  can?(current_user, :update_issue, @issue)
end

Signed-off-by: Dmitriy Zaporozhets &lt;dmitriy.zaporozhets@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
write_ was renamed to create_
modify_  was renamed to update_

So now in update action we have next code

def create
  can?(current_user, :create_issue, @issue)
end

def update
  can?(current_user, :update_issue, @issue)
end

Signed-off-by: Dmitriy Zaporozhets &lt;dmitriy.zaporozhets@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>More restricted visibility changes</title>
<updated>2015-03-11T00:36:43+00:00</updated>
<author>
<name>Vinnie Okada</name>
<email>vokada@mrvinn.com</email>
</author>
<published>2015-03-11T00:21:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=9623b71a3975bb442b85aa57146b788f96de6320'/>
<id>9623b71a3975bb442b85aa57146b788f96de6320</id>
<content type='text'>
Bug fixes and new tests for the restricted visibility changes.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug fixes and new tests for the restricted visibility changes.
</pre>
</div>
</content>
</entry>
<entry>
<title>Enforce restricted visibilities for snippets</title>
<updated>2015-03-08T23:57:08+00:00</updated>
<author>
<name>Vinnie Okada</name>
<email>vokada@mrvinn.com</email>
</author>
<published>2015-03-07T19:47:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=928fc94c3d900069902b097d6464acee712a886c'/>
<id>928fc94c3d900069902b097d6464acee712a886c</id>
<content type='text'>
Add new service classes to create and update project and personal
snippets.  These classes are responsible for enforcing restricted
visibility settings for non-admin users.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add new service classes to create and update project and personal
snippets.  These classes are responsible for enforcing restricted
visibility settings for non-admin users.
</pre>
</div>
</content>
</entry>
<entry>
<title>Improve error reporting on users API</title>
<updated>2014-09-15T23:25:24+00:00</updated>
<author>
<name>jubianchi</name>
<email>contact@jubianchi.fr</email>
</author>
<published>2014-08-18T18:09:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=998cd3cb63d56a0058c8e519d7c20e3d6e540899'/>
<id>998cd3cb63d56a0058c8e519d7c20e3d6e540899</id>
<content type='text'>
* users (#6878, #3526, #4209): Validation error messages are now exposed through 400 responses, 409 response are sent in case of duplicate email or username
* MRs (#5335): 409 responses are sent in case of duplicate merge request (source/target branches), 422 responses are sent when submiting MR fo/from unrelated forks
* issues
* labels
* projects
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* users (#6878, #3526, #4209): Validation error messages are now exposed through 400 responses, 409 response are sent in case of duplicate email or username
* MRs (#5335): 409 responses are sent in case of duplicate merge request (source/target branches), 422 responses are sent when submiting MR fo/from unrelated forks
* issues
* labels
* projects
</pre>
</div>
</content>
</entry>
<entry>
<title>Dropped expiration date from the snippet API</title>
<updated>2014-01-11T17:40:17+00:00</updated>
<author>
<name>Jeroen van Baarsen</name>
<email>jeroenvanbaarsen@gmail.com</email>
</author>
<published>2014-01-11T17:40:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=ef404d8ea62f277ec40d9a0a82c08d389b07b54e'/>
<id>ef404d8ea62f277ec40d9a0a82c08d389b07b54e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
