mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fixed ALF-3085: UI Bootstrap - No root 'Web Projects' folder exists (is WCM enabled ?)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22904 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -65,6 +65,12 @@ public class RegenerateRenditionsEvaluator extends BaseActionEvaluator
|
|||||||
final WebProjectService webProjectService = services.getWebProjectService();
|
final WebProjectService webProjectService = services.getWebProjectService();
|
||||||
final NavigationBean navigator = (NavigationBean)FacesHelper.getManagedBean(fc, NavigationBean.BEAN_NAME);
|
final NavigationBean navigator = (NavigationBean)FacesHelper.getManagedBean(fc, NavigationBean.BEAN_NAME);
|
||||||
|
|
||||||
|
// before looking for web projects ensure the root folder is present i.e. WCM is enabled!
|
||||||
|
if (!webProjectService.hasWebProjectsRoot())
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// check that the authenticated user has CONTENT MANAGER permissions for at least one web project
|
// check that the authenticated user has CONTENT MANAGER permissions for at least one web project
|
||||||
// this will ensure that the action appears only if the user is able to regenerate renditions
|
// this will ensure that the action appears only if the user is able to regenerate renditions
|
||||||
// for at least one web project
|
// for at least one web project
|
||||||
|
Reference in New Issue
Block a user