Skip to content

Commit

Permalink
KYLO-2810 UI doesnt allow changing permissions of feed when permitted
Browse files Browse the repository at this point in the history
  • Loading branch information
scottreisdorf committed Dec 7, 2018
1 parent d9e518e commit b1967e0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ constructor(@Inject("AccessControlService") private accessControlService:AccessC
subject.next( new FeedAccessControl({
accessMessage:accessMessage,
datasourceAccess:datasourceAccess,
allowEdit : entityEditAccess && allowEditAccess && datasourceAccess,
allowChangePermissions : entityAccessControlled && entityPermissionAccess && allowEditAccess,
allowEdit : entityEditAccess && (allowEditAccess || allowAdminAccess) && datasourceAccess,
allowChangePermissions : entityAccessControlled && entityPermissionAccess && (allowEditAccess || allowAdminAccess),
allowAdmin : allowAdminAccess,
allowSlaAccess : slaAccess,
allowExport : entityExportAccess && allowExport,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class DefineFeedPermissionsComponent extends AbstractFeedStepComponent {
checkEntityAccess() {
let entityAccessControlCheck:Observable<boolean> = of(this.accessControlService.checkEntityAccessControlled());
entityAccessControlCheck.subscribe((result: any) => {
this.displayEditActions = this.accessControlService.isEntityAccessControlled() && this.feed.accessControl.allowAdmin;
this.displayEditActions = this.accessControlService.isEntityAccessControlled() && this.feed.accessControl.allowChangePermissions;
}, (err: any) => {
console.log("Error checking if entity access control is enabled");
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export class SetupGuideSummaryComponent extends AbstractLoadFeedComponent {
* @returns {boolean}
*/
showSetPermissions() {
return this.feed.accessControl.allowAdmin;
return this.feed.accessControl.allowChangePermissions;
}

/**
Expand Down

0 comments on commit b1967e0

Please sign in to comment.