if (getUserStatus().isRootUser()) return true;
Workspace currentWorkspace = getCurrentWorkspace();
if (currentWorkspace == null) return false;
UserStatus us = getUserStatus();
UIPermission perm = WorkspacePermission.newInstance(currentWorkspace, WorkspacePermission.ACTION_ADMIN);
if (us.hasPermission(perm)) return true;
perm = WorkspacePermission.newInstance(currentWorkspace, WorkspacePermission.ACTION_CREATE_PAGE);
if (us.hasPermission(perm)) return true;
perm = WorkspacePermission.newInstance(currentWorkspace, WorkspacePermission.ACTION_EDIT);
if (us.hasPermission(perm)) return true;
perm = WorkspacePermission.newInstance(currentWorkspace, WorkspacePermission.ACTION_DELETE);
if (us.hasPermission(perm)) return true;
perm = BackOfficePermission.newInstance(currentWorkspace, BackOfficePermission.ACTION_CREATE_WORKSPACE);
if (us.hasPermission(perm)) return true;
perm = BackOfficePermission.newInstance(currentWorkspace, BackOfficePermission.ACTION_USE_GRAPHIC_RESOURCES);
if (us.hasPermission(perm)) return true;
perm = BackOfficePermission.newInstance(currentWorkspace, BackOfficePermission.ACTION_USE_PERMISSIONS);
if (us.hasPermission(perm)) return true;
return false;
}