Skip to content
Snippets Groups Projects
Commit 52de0934 authored by Danny Auble's avatar Danny Auble
Browse files

added some docmentation as to what a user can do to themselves

parent 5874607a
No related branches found
No related tags found
No related merge requests found
......@@ -222,6 +222,11 @@ typedef struct {
uint16_t with_deleted;
} acct_user_cond_t;
/* If there is something that can be altered here it will need to
* added as something to check for when modifying a user since a user
* can modify there default account but nothing else in
* src/slurmdbd/proc_req.c.
*/
typedef struct {
acct_admin_level_t admin_level;
List assoc_list; /* list of acct_association_rec_t *'s */
......
......@@ -1465,6 +1465,9 @@ is_same_user:
/* same_user can only alter the default account nothing else */
if(same_user) {
/* If we add anything else here for the user we will
* need to document it
*/
if((user_rec->admin_level != ACCT_ADMIN_NOTSET)
|| (user_rec->qos_list)) {
comment = "You can only change your own default account, nothing else";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment