mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-10-22 14:24:48 -04:00
Merge pull request #7330 from owncloud/idp-fix-panic
prevent panic when session is nil
This commit is contained in:
1 file changed
+3
@@ -36,5 +36,8 @@ type cs3Session struct {
|
||||
|
||||
// User returns the cs3 user of the session
|
||||
func (s *cs3Session) User() *cs3user.User {
|
||||
if s == nil {
|
||||
return nil
|
||||
}
|
||||
return s.u
|
||||
}
|
||||
Reference in new issue
Block a user