mirror of
https://github.com/bitwarden/web
synced 2025-12-26 13:13:24 +00:00
Revert "Let organizations disable anonymous sends only"
This reverts commit 7877cb7751.
This commit is contained in:
@@ -32,6 +32,9 @@
|
||||
<app-callout type="warning" *ngIf="type === policyType.PersonalOwnership">
|
||||
{{'personalOwnershipExemption' | i18n}}
|
||||
</app-callout>
|
||||
<app-callout type="warning" *ngIf="type === policyType.DisableSend">
|
||||
{{'disableSendExemption' | i18n}}
|
||||
</app-callout>
|
||||
<div class="form-group">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" id="enabled" [(ngModel)]="enabled"
|
||||
@@ -144,22 +147,6 @@
|
||||
<label class="form-check-label" for="passGenIncludeNumber">{{'includeNumber' | i18n}}</label>
|
||||
</div>
|
||||
</ng-container>
|
||||
<ng-container *ngIf="type === policyType.DisableSend">
|
||||
<app-callout type="warning">
|
||||
{{'disableSendExemption' | i18n}}
|
||||
</app-callout>
|
||||
<div class="form-group">
|
||||
<label>{{'disabledSendType' | i18n}}</label>
|
||||
<div class="form-check" *ngFor="let o of disableSendPolicyOptions">
|
||||
<input class="form-check-input" type="radio" [(ngModel)]="disableSend" name="Type_{{o.value}}"
|
||||
id="type_{{o.value}}" [value]="o.value" [checked]="disableSend === o.value"
|
||||
[disabled]="!enabled">
|
||||
<label class="form-check-label" for="type_{{o.value}}">
|
||||
{{o.name}}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</ng-container>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" class="btn btn-primary btn-submit" [disabled]="form.loading">
|
||||
|
||||
@@ -37,7 +37,6 @@ export class PolicyEditComponent implements OnInit {
|
||||
formPromise: Promise<any>;
|
||||
passwordScores: any[];
|
||||
defaultTypes: any[];
|
||||
disableSendPolicyOptions: any[];
|
||||
|
||||
// Master password
|
||||
|
||||
@@ -62,10 +61,6 @@ export class PolicyEditComponent implements OnInit {
|
||||
passGenCapitalize?: boolean;
|
||||
passGenIncludeNumber?: boolean;
|
||||
|
||||
// Disable Send
|
||||
|
||||
disableSend = DisableSendType.DisableAll;
|
||||
|
||||
private policy: PolicyResponse;
|
||||
|
||||
constructor(private apiService: ApiService, private i18nService: I18nService,
|
||||
@@ -83,10 +78,6 @@ export class PolicyEditComponent implements OnInit {
|
||||
{ name: i18nService.t('password'), value: 'password' },
|
||||
{ name: i18nService.t('passphrase'), value: 'passphrase' },
|
||||
];
|
||||
this.disableSendPolicyOptions = [
|
||||
{ name: i18nService.t('disableAllSends'), value: DisableSendType.DisableAll },
|
||||
{ name: i18nService.t('disableAnonymousSends'), value: DisableSendType.DisableAnonymous },
|
||||
];
|
||||
}
|
||||
|
||||
async ngOnInit() {
|
||||
@@ -123,10 +114,6 @@ export class PolicyEditComponent implements OnInit {
|
||||
this.masterPassRequireNumbers = this.policy.data.requireNumbers;
|
||||
this.masterPassRequireSpecial = this.policy.data.requireSpecial;
|
||||
break;
|
||||
case PolicyType.DisableSend:
|
||||
this.disableSend = this.policy.data.disableSend ||
|
||||
DisableSendType.DisableAll;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -173,11 +160,6 @@ export class PolicyEditComponent implements OnInit {
|
||||
requireSpecial: this.masterPassRequireSpecial,
|
||||
};
|
||||
break;
|
||||
case PolicyType.DisableSend:
|
||||
request.data = {
|
||||
disableSend: this.disableSend,
|
||||
};
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -3624,18 +3624,9 @@
|
||||
"message": "Disable Send"
|
||||
},
|
||||
"disableSendPolicyDesc": {
|
||||
"message": "Do not allow users to create or edit a Bitwarden Send of a particular type. Deleting an existing Send is still allowed.",
|
||||
"message": "Do not allow users to create or edit a Bitwarden Send. Deleting an existing Send is still allowed.",
|
||||
"description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated."
|
||||
},
|
||||
"disabledSendType": {
|
||||
"message": "Disable these Sends"
|
||||
},
|
||||
"disableAllSends": {
|
||||
"message": "Disable all Sends"
|
||||
},
|
||||
"disableAnonymousSends": {
|
||||
"message": "Disable anonymous Sends only"
|
||||
},
|
||||
"disableSendExemption": {
|
||||
"message": "Organization users that can manage the organization's policies are exempt from this policy's enforcement."
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user