Quintiq file version 2.0
|
#parent: #root
|
MethodOverride CanModify (
|
String username,
|
output String feedback_o
|
) remote as Boolean
|
{
|
Description: 'Shows whether user can modify the folder or not'
|
TextBody:
|
[*
|
feedback_o := '';
|
|
if( this.IsRootFolder() )
|
{
|
feedback_o := Translations::ScenarioFolder_CanModify_IsRootFolder();
|
}
|
else if( this.IsRecycleBin() )
|
{
|
feedback_o := Translations::ScenarioFolder_CanModify_IsRecycleBin();
|
}
|
else if( not QuintiqUser::CurrentUser().IsAdministrator() and this.CreatedBy() <> username )
|
{
|
feedback_o := Translations::ScenarioFolder_CanModify_IsNotCreatedByUser( this.Name(), this.CreatedBy() );
|
}
|
|
return feedback_o = '';
|
*]
|
}
|