diff options
Diffstat (limited to 'security')
| -rw-r--r-- | security/keyring.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/keyring.go b/security/keyring.go index ab65631..7ce163e 100644 --- a/security/keyring.go +++ b/security/keyring.go @@ -114,7 +114,7 @@ func UserKeyringID(target *user.User, checkSession bool) (int, error) { return 0, errors.Wrap(ErrAccessUserKeyring, err.Error()) } - if !util.IsUserRoot() { + if util.CurrentUserID() != 0 { // Make sure the returned keyring will be accessible by checking // that it is in the session keyring. if checkSession && !isUserKeyringInSession(uid) { |