mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
rename old hasPermission as allowableOperation and introduce the real hasPermissions (#4294)
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { PermissionsEnum } from '@alfresco/adf-core';
|
||||
import { AllowableOperationsEnum } from '@alfresco/adf-core';
|
||||
import { Component, forwardRef, Input, OnChanges, ViewEncapsulation, OnInit } from '@angular/core';
|
||||
import { Node } from '@alfresco/js-api';
|
||||
import { UploadButtonComponent } from './upload-button.component';
|
||||
@@ -53,6 +53,6 @@ export class UploadVersionButtonComponent extends UploadButtonComponent implemen
|
||||
}
|
||||
|
||||
checkPermission() {
|
||||
this.permissionValue.next(this.nodeHasPermission(this.node, PermissionsEnum.UPDATE));
|
||||
this.permissionValue.next(this.nodeHasPermission(this.node, AllowableOperationsEnum.UPDATE));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user