mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
rename old hasPermission as allowableOperation and introduce the real hasPermissions (#4294)
This commit is contained in:
@@ -71,11 +71,11 @@ export class VersionListComponent implements OnChanges {
|
||||
}
|
||||
|
||||
canUpdate(): boolean {
|
||||
return this.contentService.hasPermission(this.node, 'update') && this.versions.length > 1;
|
||||
return this.contentService.hasAllowableOperations(this.node, 'update') && this.versions.length > 1;
|
||||
}
|
||||
|
||||
canDelete(): boolean {
|
||||
return this.contentService.hasPermission(this.node, 'delete') && this.versions.length > 1;
|
||||
return this.contentService.hasAllowableOperations(this.node, 'delete') && this.versions.length > 1;
|
||||
}
|
||||
|
||||
restore(versionId) {
|
||||
|
@@ -100,6 +100,6 @@ export class VersionManagerComponent {
|
||||
}
|
||||
|
||||
canUpdate(): boolean {
|
||||
return this.contentService.hasPermission(this.node, 'update');
|
||||
return this.contentService.hasAllowableOperations(this.node, 'update');
|
||||
}
|
||||
}
|
||||
|
@@ -48,7 +48,7 @@ export class VersionUploadComponent {
|
||||
}
|
||||
|
||||
canUpload(): boolean {
|
||||
return this.contentService.hasPermission(this.node, 'update');
|
||||
return this.contentService.hasAllowableOperations(this.node, 'update');
|
||||
}
|
||||
|
||||
isMajorVersion(): boolean {
|
||||
|
Reference in New Issue
Block a user