summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal/user/server/user.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/user/server/user.go b/internal/user/server/user.go
index 271a4ac..7389d74 100644
--- a/internal/user/server/user.go
+++ b/internal/user/server/user.go
@@ -41,6 +41,11 @@ func (u *User) String() string {
func (u *User) HasFilePermission(filePath, permissionType string) (hasPermission bool) {
logger.Debug(u, filePath, permissionType, "Checking config permissions")
+ if u.Name == config.ScheduledUser {
+ // Schedule user has same permissions as dtail process itself.
+ return true
+ }
+
cleanPath, err := filepath.EvalSymlinks(filePath)
if err != nil {
logger.Error(u, filePath, permissionType, "Unable to evaluate symlinks", err)