Commit 97784d48 authored by Matteo Massarotto's avatar Matteo Massarotto
Browse files

[KNOWAGE-7005] - Fixed RM root files view for dev role type

parent fba38137
......@@ -82,7 +82,6 @@ public class ResourceManagerAPIImpl implements ResourceManagerAPI {
private static final String RESOURCE_FUNCTIONALITY_DEV = "ResourceManagementDev";
private static final String RESOURCE_FUNCTIONALITY = "ResourceManagement";
private static final String MODEL_CATALOG_FUNCTIONALITY = "ModelCatalogResourceManagement";
@Autowired
HMACUtilities HMACUtilities;
......@@ -208,7 +207,8 @@ public class ResourceManagerAPIImpl implements ResourceManagerAPI {
for (String folder : restrictedFolders) {
Path completePath = getTotalPath(folder, profile);
if (path.toString().toLowerCase().startsWith(completePath.toString().toLowerCase())) {
if (path.toString().toLowerCase().startsWith(completePath.toString().toLowerCase())
|| path.toString().toLowerCase().startsWith(getWorkDirectory(profile).toString().toLowerCase())) {
return true;
}
......
Supports Markdown
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