Skip to content

Commit

Permalink
Merge pull request #303 from UKHomeOffice/projects_improvements
Browse files Browse the repository at this point in the history
Projects improvements
  • Loading branch information
Rhodine-orleans-lindsay authored Sep 17, 2020
2 parents 0fa5872 + 56fed5a commit 4741bfe
Show file tree
Hide file tree
Showing 11 changed files with 473 additions and 164 deletions.
2 changes: 1 addition & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ pipeline:
api_scan_image:
image: quay.io/ukhomeofficedigital/anchore-submission:latest
image_name: platform-hub-api:${DRONE_COMMIT_SHA}
whitelist: CVE-2019-5419,CVE-2019-5420,CVE-2020-8130,CVE-2020-11077,CVE-2020-11076,CVE-2020-5247,CVE-2019-16770
whitelist: CVE-2019-5419,CVE-2019-5420,CVE-2020-8130,CVE-2020-11077,CVE-2020-11076,CVE-2020-5247,CVE-2019-16770,CVE-2020-8164,CVE-2020-8165,CVE-2020-8162,CVE-2019-5420
when:
event: [push, tag]

Expand Down
6 changes: 3 additions & 3 deletions platform-hub-api/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ GEM
activesupport (>= 4.2)
arel (>= 6)
public_suffix (3.0.3)
puma (3.10.0)
rack (2.0.7)
puma (3.12.6)
rack (2.2.3)
rack-test (0.6.3)
rack (>= 1.0)
rails (5.0.7.2)
Expand Down Expand Up @@ -335,4 +335,4 @@ RUBY VERSION
ruby 2.3.8p459

BUNDLED WITH
1.16.2
1.17.3
6 changes: 6 additions & 0 deletions platform-hub-api/app/models/ability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ def initialize(user)
can :remove_membership, Project do |project|
can_administer_project project, user
end
can :set_role, Project do |project|
can_administer_project project, user
end
can :unset_role, Project do |project|
can_administer_project project, user
end
can :administer_projects, Project do |project|
can_administer_project project, user
end
Expand Down
Loading

0 comments on commit 4741bfe

Please sign in to comment.