mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-24 08:20:31 +08:00
Use signup app for GetApplicationByUser().
This commit is contained in:
parent
4ff4961312
commit
bce606896f
@ -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