From f1e0230664d8054f197d1469579071cb29561aef Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Wed, 21 Dec 2022 16:29:04 +0100 Subject: [PATCH] Fix linter issue --- services/graph/pkg/service/v0/educationuser.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/graph/pkg/service/v0/educationuser.go b/services/graph/pkg/service/v0/educationuser.go index 7757b0e0fd..41922ed0af 100644 --- a/services/graph/pkg/service/v0/educationuser.go +++ b/services/graph/pkg/service/v0/educationuser.go @@ -259,7 +259,7 @@ func (g Graph) GetEducationUser(w http.ResponseWriter, r *http.Request) { } d.Quota = quota if slices.Contains(sel, "drive") || slices.Contains(exp, "drive") { - if *d.DriveType == "personal" { + if *d.DriveType == _spaceTypePersonal { user.Drive = d } } else { @@ -330,7 +330,7 @@ func (g Graph) DeleteEducationUser(w http.ResponseWriter, r *http.Request) { return } for _, sp := range lspr.GetStorageSpaces() { - if !(sp.SpaceType == "personal" && sp.Owner.Id.OpaqueId == user.GetId()) { + if !(sp.SpaceType == _spaceTypePersonal && sp.Owner.Id.OpaqueId == user.GetId()) { continue } // TODO: check if request contains a homespace and if, check if requesting user has the privilege to