View Full Version : UserGroups in 1.1alpha10
Hi all, I am experiencing problems with regards to adding users to defined user groups.
I can't seem to find a way to add a particular user to a user group through the frontend.
Is anybody experiencing the same problem or am i doing something wrong?
:)
James Wells
07-10-2005, 00:13
Greetings,
Are the users not being added, or are you just not seeing all of the users?
When i`m in the UserGroups Screen, i select the usergroup i want to add the user, but when i click on users (on the bottom of the screen) and click update. Only the "Admin" user is added.
If i login with a different user with default permissions (Read/Write). and follow the same process, the "admin" user is added to the group and not the logged in user....
Is this a bug or am i doing something wrong :confused:
I found a fix for this problem in the forum.
The problem is, when you want to add a user to a usergroup, you cant, because there isnt a list of users to choose from.
Here is the fix for this problem:
edit "include/forms.inc.php"
do a search for "checkbox"
look for this ["userid"]."\" \">".
replace with this ["userid"]."\" >".
:cool:
KarmaPolice
27-10-2005, 22:36
this bug still exists in beta2 and should definitely be fixed... could someone have a look into it that develops the program and make the above fix permanent.
James Wells
28-10-2005, 04:26
Hmmm, looking through the code, starting at line 810, I see;
echo "<input type=checkbox name=\"".$row
["userid"]."\" \">".$row["alias"];
}
else
{
echo "<input type=checkbox checked name=
\"".$row["userid"]."\" \">".$row["alias"];
}
}
else
{
echo "<input type=checkbox name=\"".$row["userid
"]."\" \">".$row["alias"];
I suspect this is where you are looking, however, I decided to test it using the CVS code, and everything worked correctly.
I am using 1.1beta2 and do not see a way to add users to groups.
The user "Admin" was magically added to a group and that is who I am logged in as, but I do not see a way to add other users.
See attachment.
OK. In playing around with it a little more, I noticed that I can add and remove the Admin user by clicking Change, and checking or unchecking the box and clicking Update Group.
When I log in as a user other than Admin and try to add/remove the user, it only adds/removes "Admin" as the user: not the other user!
I tried Kurt's resolution from above and got a partial fix. When I went back in as Admin (surely because my other user did not have proper useradd rights) I could create a new group and it would list all users on the system and allow me to choose who was in the group.
But after the group was created I do not seem to be able to add/remove users from the group. This will do for now.
Thanks for the help!