Fix use of member UID range in addclub
This commit is contained in:
parent
179f501385
commit
e2b6557828
|
@ -64,8 +64,8 @@ int addclub() {
|
||||||
if (ceo_user_exists(userid))
|
if (ceo_user_exists(userid))
|
||||||
deny("user %s already exists in LDAP", userid);
|
deny("user %s already exists in LDAP", userid);
|
||||||
|
|
||||||
if ((id = ceo_new_uid(member_min_id, member_max_id)) <= 0)
|
if ((id = ceo_new_uid(club_min_id, club_max_id)) <= 0)
|
||||||
fatal("no available uids in range [%d, %d]", member_min_id, member_max_id);
|
fatal("no available uids in range [%d, %d]", club_min_id, club_max_id);
|
||||||
|
|
||||||
snprintf(acl_s, sizeof(acl_s), club_home_acl, id);
|
snprintf(acl_s, sizeof(acl_s), club_home_acl, id);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue