Commit f64ee814 authored by Francois Merlin's avatar Francois Merlin
Browse files

RELEASER-15 : Add RBAC to site and cluster resources

parent 83103da1
......@@ -207,7 +207,7 @@ public class ManageSiteReleaseJspBean extends MVCAdminJspBean
_modifValidated = null;
String strSiteId = request.getParameter( PARAMETER_SITE_ID );
if ( !SiteService.IsUserAuthorized( AdminUserService.getAdminUser( request ), strSiteId, SiteResourceIdService.PERMISSION_RELEASE ) )
if ( !SiteService.IsUserAuthorized( AdminUserService.getAdminUser( request ), _site == null?strSiteId:Integer.toString(_site.getId()), SiteResourceIdService.PERMISSION_RELEASE ) )
{
throw new AccessDeniedException( MESSAGE_ACCESS_DENIED );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment