Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide submitters dropbox in motion create if cannot see users #4484

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h2>{{ 'New amendment' | translate }}</h2>
<!-- Submitter -->
@if (newMotion) {
<div class="content-field">
@if (canChangeMetadata) {
@if (canChangeMetadata && canSeeUsers) {
<mat-form-field>
<mat-label>{{ 'Submitters' | translate }}</mat-label>
<os-repo-search-selector
Expand All @@ -56,6 +56,12 @@ <h2>{{ 'New amendment' | translate }}</h2>
</ng-template>
</os-repo-search-selector>
</mat-form-field>
} @else {
@if (allowAdditionalSubmitter) {
<h3>
<span>{{ 'Submitters' | translate }}</span>
</h3>
}
}
</div>
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ export class MotionFormComponent extends BaseMeetingComponent implements OnInit
return this.perms.canManageAgenda();
}

public get canSeeUsers(): boolean {
return this.operator.hasPerms(Permission.userCanSee);
}

public get isParagraphBasedAmendment(): boolean {
return this.isExisting && this.motion.isParagraphBasedAmendment();
}
Expand Down
Loading