Skip to content

Commit

Permalink
PC-185: Reimplement the 'submission to journal' feature
Browse files Browse the repository at this point in the history
Ensure the journal submission is shown only for patients, not families. Families cannot be submitted to the journal at the moment.
  • Loading branch information
marta- authored and veronikaslc committed Jul 16, 2018
1 parent ad5b249 commit 534506f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/main/resources/PhenomeCentral/JournalSubmission.xml
Expand Up @@ -142,7 +142,7 @@
],

initialize : function (permissionsManager) {
if (!permissionsManager || this.JOURNALS.length == 0) {
if (!permissionsManager || permissionsManager.entityType != 'patients' || this.JOURNALS.length == 0) {
return
}
this._permissionsManager = permissionsManager;
Expand Down

0 comments on commit 534506f

Please sign in to comment.