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

Change detailed route on overview page to prevent 403 #241

Merged
merged 2 commits into from
Feb 21, 2019

Conversation

pablothedude
Copy link
Contributor

Change route on overview page for non admins to the entity detail
page. This should be changed because the currently used route should
not be accessible for non admins. This in order to prevent an exception
when trying to access the edit page for non admins when not allowed.

@pablothedude
Copy link
Contributor Author

Copy link
Contributor

@MKodde MKodde left a comment

Choose a reason for hiding this comment

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

Did you forget to push something?

@@ -52,7 +52,7 @@ parameters:
manage_prod_host: 'https://manage-prod.dev.support.surfconext.nl'
manage_prod_username: sp-dashboard
manage_prod_password: secret
manage_prod_publication_status_create: prodaccepted
manage_prod_publication_status_create: notprodaccepted
Copy link
Contributor

Choose a reason for hiding this comment

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

Accidental commit?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed

@@ -300,6 +300,8 @@ public function adminOverviewAction($serviceId)
$entityList = $this->entityService->getEntityListForService($service);
$serviceList = new ServiceList([Service::fromService($service, $entityList, $this->router)]);

echo $service->getTeamName();
Copy link
Contributor

Choose a reason for hiding this comment

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

Debug leftover?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed

Change route on overview page for non admins to the entity detail
page. This should be changed because the currently used route should
not be accessible for non admins. This in order to prevent an exception
when trying to access the edit page for non admins when not allowed.
@pablothedude pablothedude force-pushed the feature/change-overview-detailed-route branch from 4a32281 to 916f18e Compare February 21, 2019 16:41
@pablothedude
Copy link
Contributor Author

No didn't forget to commit

@MKodde
Copy link
Contributor

MKodde commented Feb 21, 2019

Thanks for the fix, to prevent future regression, I've added a web test covering this behavior,

@MKodde MKodde merged commit b21c5b2 into develop Feb 21, 2019
@MKodde MKodde deleted the feature/change-overview-detailed-route branch February 21, 2019 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants