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

[Organizations] Merge permissions service 2.0 feature branch into dev #5229

Merged
merged 9 commits into from
Jan 8, 2018

Conversation

scottbommarito
Copy link
Contributor

This PR brings the fixes and testing implemented in the permissions service 2.0 feature branch into dev.

@@ -299,27 +299,21 @@ public virtual JsonResult UploadPackageProgress()
var id = nuspec.GetId();
var packageRegistration = _packageService.FindPackageRegistrationById(id);
// For a new package id verify if the user is allowed to use it.
if (packageRegistration == null)
if (packageRegistration == null && ActionsRequiringPermissions.UploadNewPackageId.CheckPermissionsOnBehalfOfAnyAccount(currentUser, new ActionOnNewPackageContext(id, _reservedNamespaceService)) != PermissionsCheckResult.Allowed)
Copy link
Member

Choose a reason for hiding this comment

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

nit: wrap long lines

@scottbommarito scottbommarito force-pushed the sb-feature-orgpermissions branch from b6ba3fa to 0824e07 Compare January 8, 2018 18:50
@scottbommarito scottbommarito merged commit 270395a into dev Jan 8, 2018
@scottbommarito scottbommarito deleted the sb-feature-orgpermissions branch January 8, 2018 19:12
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