summaryrefslogtreecommitdiff
path: root/internal/user
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2021-11-06 12:33:19 +0200
committerPaul Buetow <paul@buetow.org>2021-11-06 12:33:19 +0200
commitc8c42aa26861e28e6f22458fffd8db6d9b712d70 (patch)
treeb70a61237969e212c40e18f9b46f8332c11e0c2c /internal/user
parent3d02a4a917dbdd85c40dbdb0fcac65c82fb7fe5b (diff)
Remove insecure and dangerous relaxed auth mode
Diffstat (limited to 'internal/user')
-rw-r--r--internal/user/server/user.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/internal/user/server/user.go b/internal/user/server/user.go
index aa7f8b1..004bda4 100644
--- a/internal/user/server/user.go
+++ b/internal/user/server/user.go
@@ -45,10 +45,6 @@ func (u *User) String() string {
// HasFilePermission is used to determine whether user is alowed to read a file.
func (u *User) HasFilePermission(filePath, permissionType string) (hasPermission bool) {
dlog.Server.Debug(u, filePath, permissionType, "Checking config permissions")
- if config.ServerRelaxedAuthEnable {
- dlog.Server.Fatal(u, filePath, permissionType, "Server releaxed auth enabled")
- return true
- }
if u.Name == config.ScheduleUser || u.Name == config.ContinuousUser {
// Background user has same permissions as dtail process itself.
return true