From 248ee5f44d4dfba011e7112b83bf44e9c4614e9c Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Mon, 23 Jun 2003 20:53:34 +0000
Subject: [PATCH] Remove test that -u (user) option is self. This will work
 from user root or SlurmUser (which has not been identified at option parsing
 time anyway).

---
 src/scancel/opt.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/scancel/opt.c b/src/scancel/opt.c
index eefe94fe2ba..2f64a116f19 100644
--- a/src/scancel/opt.c
+++ b/src/scancel/opt.c
@@ -456,14 +456,6 @@ opt_verify(void)
 		}
 	}
 
-	if ((opt.user_id) &&
-	    (opt.user_id != getuid()) &&
-	    (opt.user_id != geteuid())) {
-		error ("You are not authorized to delete jobs of user %u",
-			opt.user_id);
-		exit (1);
-	}
-
 	if ((opt.job_name == NULL) &&
 	    (opt.partition == NULL) &&
 	    (opt.state == JOB_END) &&
-- 
GitLab