mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-10 18:23:44 +08:00
Replace getDefaultApplication() with getUserApplication().
This commit is contained in:
@ -49,7 +49,7 @@ class UserEditPage extends React.Component {
|
||||
UNSAFE_componentWillMount() {
|
||||
this.getUser();
|
||||
this.getOrganizations();
|
||||
this.getDefaultApplication();
|
||||
this.getUserApplication();
|
||||
}
|
||||
|
||||
getUser() {
|
||||
@ -70,8 +70,8 @@ class UserEditPage extends React.Component {
|
||||
});
|
||||
}
|
||||
|
||||
getDefaultApplication() {
|
||||
ApplicationBackend.getDefaultApplication("admin")
|
||||
getUserApplication() {
|
||||
ApplicationBackend.getUserApplication(this.state.organizationName, this.state.userName)
|
||||
.then((application) => {
|
||||
this.setState({
|
||||
application: application,
|
||||
|
Reference in New Issue
Block a user