Commit graph

21 commits

Author SHA1 Message Date
Rémy Coutable
42fdbbe34a
Refactor spec/policies/project_policy_spec.rb to minimize the diff with EE
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-09-22 18:06:06 +02:00
Felipe Artur
5bfb6357ef Allow DEVELOPER role to admin milestones 2017-09-18 17:15:38 -03:00
Robert Speicher
72a7b30c9f Change all :empty_project to :project 2017-08-02 17:47:31 -04:00
Rémy Coutable
ddccd24c13 Remove superfluous lib: true, type: redis, service: true, models: true, services: true, no_db: true, api: true
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-27 14:31:53 +02:00
Sean McGivern
ccac2abeba Don't treat anonymous users as owners when group has pending invites
The `members` table can have entries where `user_id: nil`, because people can
invite group members by email. We never want to include those as members,
because it might cause confusion with the anonymous (logged out) user.
2017-07-24 16:58:04 +01:00
Jarka Kadlecova
2fa22a0729 Associate Issues tab only with internal issues tracker 2017-07-24 08:10:14 +02:00
http://jneen.net/
37c401433b convert all the policies to DeclarativePolicy 2017-06-27 12:44:37 -07:00
http://jneen.net/
963b374dc7 update the specs to not require a set to be returned 2017-06-27 12:41:54 -07:00
Grzegorz Bizon
0430b76441 Enable Style/DotPosition Rubocop 👮 2017-06-21 13:48:12 +00:00
Kamil Trzcinski
25b99a5b3b Update tests and application 2017-06-13 16:05:38 +02:00
Sam Rose
1ebd9dad8e Add confirm delete protected branch modal 2017-05-08 07:41:58 +00:00
Robert Speicher
90e802cd96 Use :empty_project where possible in policy specs 2017-03-27 18:45:36 -04:00
Douwe Maan
46dff6910d More backport 2017-02-06 17:19:37 -06:00
Z.J. van de Weg
1096040024 Update effected tests 2016-12-04 17:32:33 +01:00
Z.J. van de Weg
617f43c74b Guests can read builds if those are public
Fixes #18448
2016-12-04 15:48:50 +01:00
Douglas Barbosa Alexandre
42c332689d Improve ProjectPolicy spec to check permissions when wiki is disabled 2016-11-30 16:02:25 -02:00
Kamil Trzcinski
517dd4a3f3 Allow owners to fetch source code in CI builds
Due to different way of handling owners of a project, they were not allowed to fetch CI sources for project.
2016-11-01 09:37:20 +01:00
Valery Sizov
b4004488f7 Make guests unable to view MRs 2016-10-11 16:51:26 +03:00
Alejandro Rodríguez
1d35c5b3ae Improve project policy spec 2016-10-06 18:54:28 -03:00
Felipe Artur
98559adf71 Test if issue authors can access private projects 2016-09-20 14:57:23 -03:00
http://jneen.net/
29b1623a36 add project_policy_spec to replace .project_abilities spec 2016-08-30 11:35:06 -07:00