mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 10:45:47 +08:00
Use signup app for GetApplicationByUser().
This commit is contained in:
parent
4a930121c4
commit
bb09b24b0f
@ -119,7 +119,11 @@ func GetApplicationByOrganizationName(organization string) *Application {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func GetApplicationByUser(user *User) *Application {
|
func GetApplicationByUser(user *User) *Application {
|
||||||
return GetApplicationByOrganizationName(user.Owner)
|
if user.SignupApplication != "" {
|
||||||
|
return getApplication("admin", user.SignupApplication)
|
||||||
|
} else {
|
||||||
|
return GetApplicationByOrganizationName(user.Owner)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetApplicationByClientId(clientId string) *Application {
|
func GetApplicationByClientId(clientId string) *Application {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user