mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-24 08:20:31 +08:00
Don't check domain for submitPermissionEdit()
This commit is contained in:
parent
0bc5b90218
commit
7312c5ce3c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user