diff --git a/app/institutions/dashboard/-components/institutional-users-list/template.hbs b/app/institutions/dashboard/-components/institutional-users-list/template.hbs index 71b0f3a452..a38dba8741 100644 --- a/app/institutions/dashboard/-components/institutional-users-list/template.hbs +++ b/app/institutions/dashboard/-components/institutional-users-list/template.hbs @@ -175,14 +175,15 @@ {{institutionalUser.userName}} - + {{#if @institution.institutionalRequestAccessEnabled}} + + {{/if}} {{else if (eq column.type 'osf_link')}} {{institutionalUser.userGuid}} diff --git a/app/institutions/dashboard/-components/object-list/contributors-field/template.hbs b/app/institutions/dashboard/-components/object-list/contributors-field/template.hbs index 2750217ec7..db7e51600d 100644 --- a/app/institutions/dashboard/-components/object-list/contributors-field/template.hbs +++ b/app/institutions/dashboard/-components/object-list/contributors-field/template.hbs @@ -7,13 +7,15 @@ {{t 'institutions.dashboard.object-list.table-items.permission-level' permissionLevel=contributor.permissionLevel}} - + {{#if @institution.institutionalRequestAccessEnabled}} + + {{/if}} {{else}}
{{t 'institutions.dashboard.object-list.table-items.no-contributors'}} diff --git a/app/models/institution.ts b/app/models/institution.ts index 9b0432faf0..7627611a04 100644 --- a/app/models/institution.ts +++ b/app/models/institution.ts @@ -35,6 +35,7 @@ export default class InstitutionModel extends OsfModel { // identifier_domain in the admin app @attr('fixstring') iri!: string; @attr('fixstringarray') iris!: string[]; + @attr('boolean', { defaultValue: false }) institutionalAccessRequestEnabled!: boolean; // TODO Might want to replace calls to `users` with `institutionUsers.user`? @hasMany('user', { inverse: 'institutions' })