mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-10-27 08:39:12 -04:00
prevent panic when session is nil
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
1 parent
c62d19cf32
commit
ea5a60cf56
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