mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
build fix.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32097 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -192,7 +192,7 @@ class ScenarioOpenFileInstance implements ScenarioInstance
|
||||
if(name.equalsIgnoreCase(c.getName()))
|
||||
{
|
||||
NetworkFile file = c.getNetworkFile();
|
||||
if(file.isReadOnly())
|
||||
if(isReadOnly(file))
|
||||
{
|
||||
// Read Only File
|
||||
if(openReadOnlyCount == 1)
|
||||
@@ -410,9 +410,7 @@ class ScenarioOpenFileInstance implements ScenarioInstance
|
||||
|
||||
state = InternalState.OPEN;
|
||||
|
||||
//
|
||||
if(fileHandle.getGrantedAccess() == NetworkFile.READONLY)
|
||||
//if(fileHandle.isReadOnly())
|
||||
if(isReadOnly(fileHandle))
|
||||
{
|
||||
openReadOnlyCount++;
|
||||
fileHandleReadOnly=fileHandle;
|
||||
@@ -442,6 +440,9 @@ class ScenarioOpenFileInstance implements ScenarioInstance
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
private boolean isReadOnly(NetworkFile file)
|
||||
{
|
||||
return (file.getGrantedAccess() == NetworkFile.READONLY);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user