Don't check domain for submitPermissionEdit()

This commit is contained in:
Gucheng Wang 2022-08-21 15:28:19 +08:00
parent 0bc5b90218
commit 7312c5ce3c

View File

@ -374,10 +374,10 @@ class PermissionEditPage extends React.Component {
Setting.showMessage("error", "The users and roles cannot be empty at the same time");
return;
}
if (this.state.permission.domains.length === 0) {
Setting.showMessage("error", "The domains cannot be empty");
return;
}
// if (this.state.permission.domains.length === 0) {
// Setting.showMessage("error", "The domains cannot be empty");
// return;
// }
if (this.state.permission.resources.length === 0) {
Setting.showMessage("error", "The resources cannot be empty");
return;