Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The new pipeline create flow should check for group admin as well #6404

Merged

Conversation

kritika-singh3
Copy link
Contributor

No description provided.

@@ -45,7 +45,7 @@ public String controllerBasePath() {
@Override
public void setupRoutes() {
path(controllerBasePath(), () -> {
before("", authenticationHelper::checkAdminUserAnd403);
before("", authenticationHelper::checkAdminUserOrGroupAdminUserAnd403);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No tests for this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the tests are there now in spark/spark-spa/src/test/groovy/com/thoughtworks/go/spark/spa/PipelinesControllerTest.groovy:

    @Nested
    class Security implements SecurityTestTrait, GroupAdminUserSecurity { ... }

@kritika-singh3
Copy link
Contributor Author

Related issue: #6475

@@ -45,7 +45,7 @@ public String controllerBasePath() {
@Override
public void setupRoutes() {
path(controllerBasePath(), () -> {
before("", authenticationHelper::checkAdminUserAnd403);
before("", authenticationHelper::checkAdminUserOrGroupAdminUserAnd403);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the tests are there now in spark/spark-spa/src/test/groovy/com/thoughtworks/go/spark/spa/PipelinesControllerTest.groovy:

    @Nested
    class Security implements SecurityTestTrait, GroupAdminUserSecurity { ... }

@marques-work
Copy link
Member

marques-work commented Jun 13, 2019

@kritika-singh3 @maheshp Going to send this through the build and merge when green. Sorry I didn't see this PR earlier.

@marques-work marques-work merged commit 1054491 into gocd:master Jun 13, 2019
@kritika-singh3 kritika-singh3 deleted the new-pipeline-flow-for-group-admin branch June 14, 2019 04:38
@maheshp maheshp added this to the Release 19.6.0 milestone Jul 18, 2019
@maheshp maheshp added this to Done in 19.6.0 Jul 18, 2019
@rajiesh rajiesh moved this from Done to QA Done in 19.6.0 Jul 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
19.6.0
QA Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants