mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-11 16:24:11 +01:00
Entity: Fix code comments in auth_user.go
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -488,7 +488,7 @@ func (m *User) CanUpload() bool {
|
||||
}
|
||||
}
|
||||
|
||||
// DefaultBasePath returns the default base path of the user based on the user name.
|
||||
// DefaultBasePath returns the default base path of the user based on the username.
|
||||
func (m *User) DefaultBasePath() string {
|
||||
if s := m.Handle(); s == "" {
|
||||
return ""
|
||||
@@ -1241,7 +1241,7 @@ func (m *User) HasShares() bool {
|
||||
return !m.NoShares()
|
||||
}
|
||||
|
||||
// HasShare if a uid was shared with the user.
|
||||
// HasShare if an uid was shared with the user.
|
||||
func (m *User) HasShare(uid string) bool {
|
||||
if m.NotRegistered() || m.NoShares() {
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user