Permalink
Browse files

Don't redirect admins away from ReportMyPackage.cshtml

  • Loading branch information...
1 parent 14143c1 commit 0e9fbe8250178576396a30185bd8e1815e513f65 @TimLovellSmith TimLovellSmith committed Mar 27, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 Website/Controllers/PackagesController.cs
@@ -268,7 +268,7 @@ public virtual ActionResult ReportMyPackage(string id, string version)
}
// If user hit this url by constructing it manually but is not the owner, redirect them to ReportAbuse
- if (!package.IsOwner(user))
+ if (!(HttpContext.User.IsInRole(Constants.AdminRoleName) || package.IsOwner(user)))
{
return RedirectToAction(ActionNames.ReportAbuse, new { id, version });
}

0 comments on commit 0e9fbe8

Please sign in to comment.