Skip to content

Commit

Permalink
feat: Adjust schedule note publication permissions - EXO-75520 - Meed…
Browse files Browse the repository at this point in the history
…s-io/MIPs#161  (#1229)

Adjust schedule note publication permissions
  • Loading branch information
hakermi committed Nov 28, 2024
1 parent 429483f commit 2547291
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -599,11 +599,8 @@ export default {
const uris = eXo.env.portal.selectedNodeUri.split('/');
return uris[uris.length - 1];
},
isNoteAuthor() {
return !this.published && this?.note.author === eXo.env.portal.userName;
},
canScheduleNotePublication() {
return this.isNoteAuthor || this.canSchedule || this.canPublish;
return this.note?.canManage || this.canSchedule;
}
},
created() {
Expand Down

0 comments on commit 2547291

Please sign in to comment.