-rw-r--r-- | noncore/settings/usermanager/passwd.cpp | 11 | ||||
-rw-r--r-- | noncore/settings/usermanager/userdialog.cpp | 17 |
2 files changed, 23 insertions, 5 deletions
diff --git a/noncore/settings/usermanager/passwd.cpp b/noncore/settings/usermanager/passwd.cpp index 0a2bfba..1e98778 100644 --- a/noncore/settings/usermanager/passwd.cpp +++ b/noncore/settings/usermanager/passwd.cpp | |||
@@ -91,65 +91,65 @@ bool Passwd::close() { | |||
91 | QTextStream ts_group(&group_file); | 91 | QTextStream ts_group(&group_file); |
92 | for(QStringList::Iterator it=groupStringList.begin(); it!=groupStringList.end(); ++it) { | 92 | for(QStringList::Iterator it=groupStringList.begin(); it!=groupStringList.end(); ++it) { |
93 | ts_group << (*it) + "\n"; | 93 | ts_group << (*it) + "\n"; |
94 | } | 94 | } |
95 | returnvalue=true; | 95 | returnvalue=true; |
96 | group_file.close(); | 96 | group_file.close(); |
97 | } | 97 | } |
98 | passwd_file.close(); | 98 | passwd_file.close(); |
99 | } | 99 | } |
100 | return returnvalue; | 100 | return returnvalue; |
101 | } | 101 | } |
102 | 102 | ||
103 | // Splits a "passwd" line into the components and stores them in the pw_* variables. | 103 | // Splits a "passwd" line into the components and stores them in the pw_* variables. |
104 | void Passwd::splitPasswdEntry(QString &userString) { | 104 | void Passwd::splitPasswdEntry(QString &userString) { |
105 | userdataStringList=QStringList::split(":",userString,true); | 105 | userdataStringList=QStringList::split(":",userString,true); |
106 | QStringList::Iterator it=userdataStringList.begin(); | 106 | QStringList::Iterator it=userdataStringList.begin(); |
107 | pw_name=(*it++); | 107 | pw_name=(*it++); |
108 | pw_passwd=(*it++); | 108 | pw_passwd=(*it++); |
109 | pw_uid=(*it++).toInt(); | 109 | pw_uid=(*it++).toInt(); |
110 | pw_gid=(*it++).toInt(); | 110 | pw_gid=(*it++).toInt(); |
111 | pw_gecos=(*it++); | 111 | pw_gecos=(*it++); |
112 | pw_dir=(*it++); | 112 | pw_dir=(*it++); |
113 | pw_shell=(*it++); | 113 | pw_shell=(*it++); |
114 | } | 114 | } |
115 | 115 | ||
116 | // Splits a "group" line into the components and stores them in the gr_* variables. | 116 | // Splits a "group" line into the components and stores them in the gr_* variables. |
117 | void Passwd::splitGroupEntry(QString &groupString) { | 117 | void Passwd::splitGroupEntry(QString &groupString) { |
118 | groupdataStringList=QStringList::split(":",groupString,true); | 118 | groupdataStringList=QStringList::split(":",groupString,true); |
119 | QStringList::Iterator it=groupdataStringList.begin(); | 119 | QStringList::Iterator it=groupdataStringList.begin(); |
120 | gr_name=(*it++); | 120 | gr_name=(*it++); |
121 | it++; | 121 | it++; |
122 | gr_gid=(*it++).toInt(); | 122 | gr_gid=(*it++).toInt(); |
123 | gr_mem=QStringList::split(" ",(*it++)); | 123 | gr_mem=QStringList::split(",",(*it++)); |
124 | } | 124 | } |
125 | 125 | ||
126 | // Find a user in the passwdStringList. Return true if found and also fill the pw_* variables. | 126 | // Find a user in the passwdStringList. Return true if found and also fill the pw_* variables. |
127 | bool Passwd::searchUser(QRegExp &userRegExp) { | 127 | bool Passwd::searchUser(QRegExp &userRegExp) { |
128 | QStringList tempStringList(passwdStringList.grep(userRegExp)); | 128 | QStringList tempStringList(passwdStringList.grep(userRegExp)); |
129 | if((tempStringList.isEmpty())) { | 129 | if((tempStringList.isEmpty())) { |
130 | return false; | 130 | return false; |
131 | } else { | 131 | } else { |
132 | userString=(*(tempStringList.begin())); | 132 | userString=(*(tempStringList.begin())); |
133 | splitPasswdEntry(userString); | 133 | splitPasswdEntry(userString); |
134 | } | 134 | } |
135 | return true; | 135 | return true; |
136 | } | 136 | } |
137 | 137 | ||
138 | // Find a user by login. | 138 | // Find a user by login. |
139 | bool Passwd::findUser(const char *username) { | 139 | bool Passwd::findUser(const char *username) { |
140 | QRegExp userRegExp(QString("^%1\\:").arg(username)); | 140 | QRegExp userRegExp(QString("^%1\\:").arg(username)); |
141 | return searchUser(userRegExp); | 141 | return searchUser(userRegExp); |
142 | } | 142 | } |
143 | 143 | ||
144 | // Find a user by uid. | 144 | // Find a user by uid. |
145 | bool Passwd::findUser(int uid) { | 145 | bool Passwd::findUser(int uid) { |
146 | QRegExp userRegExp(QString(":%1\\:").arg(uid)); | 146 | QRegExp userRegExp(QString(":%1\\:").arg(uid)); |
147 | return searchUser(userRegExp); | 147 | return searchUser(userRegExp); |
148 | } | 148 | } |
149 | 149 | ||
150 | // Add a user to the passwdStringList, create home directory, and optionally create a group for the user. | 150 | // Add a user to the passwdStringList, create home directory, and optionally create a group for the user. |
151 | bool Passwd::addUser(QString pw_name, QString pw_passwd, int pw_uid, int pw_gid, QString pw_gecos,QString pw_dir, QString pw_shell, bool createGroup) { | 151 | bool Passwd::addUser(QString pw_name, QString pw_passwd, int pw_uid, int pw_gid, QString pw_gecos,QString pw_dir, QString pw_shell, bool createGroup) { |
152 | QString tempString; | 152 | QString tempString; |
153 | if((createGroup) && (!(findGroup(pw_gid)))) addGroup(pw_name,pw_gid); | 153 | if((createGroup) && (!(findGroup(pw_gid)))) addGroup(pw_name,pw_gid); |
154 | pw_passwd = crypt(pw_passwd, crypt_make_salt()); | 154 | pw_passwd = crypt(pw_passwd, crypt_make_salt()); |
155 | tempString=pw_name+":"+pw_passwd+":"+QString::number(pw_uid)+":"+QString::number(pw_gid)+":"+pw_gecos+":"+pw_dir+":"+pw_shell; | 155 | tempString=pw_name+":"+pw_passwd+":"+QString::number(pw_uid)+":"+QString::number(pw_gid)+":"+pw_gecos+":"+pw_dir+":"+pw_shell; |
@@ -210,88 +210,91 @@ bool Passwd::searchGroup(QRegExp &groupRegExp) { | |||
210 | groupString=(*(tempStringList.begin())); | 210 | groupString=(*(tempStringList.begin())); |
211 | splitGroupEntry(groupString); | 211 | splitGroupEntry(groupString); |
212 | } | 212 | } |
213 | return true; | 213 | return true; |
214 | } | 214 | } |
215 | 215 | ||
216 | // Find a group by groupname. | 216 | // Find a group by groupname. |
217 | bool Passwd::findGroup(const char *groupname) { | 217 | bool Passwd::findGroup(const char *groupname) { |
218 | QRegExp groupRegExp(QString("^%1\\:").arg(groupname)); | 218 | QRegExp groupRegExp(QString("^%1\\:").arg(groupname)); |
219 | return searchGroup(groupRegExp); | 219 | return searchGroup(groupRegExp); |
220 | } | 220 | } |
221 | 221 | ||
222 | // Find a group by gid. | 222 | // Find a group by gid. |
223 | bool Passwd::findGroup(int gid) { | 223 | bool Passwd::findGroup(int gid) { |
224 | QRegExp groupRegExp(QString(":%1\\:").arg(gid)); | 224 | QRegExp groupRegExp(QString(":%1\\:").arg(gid)); |
225 | return searchGroup(groupRegExp); | 225 | return searchGroup(groupRegExp); |
226 | } | 226 | } |
227 | 227 | ||
228 | // Add a group to groupStringList | 228 | // Add a group to groupStringList |
229 | bool Passwd::addGroup(QString gr_name, int gr_gid) { | 229 | bool Passwd::addGroup(QString gr_name, int gr_gid) { |
230 | QString tempString; | 230 | QString tempString; |
231 | tempString=gr_name+":*:"+QString::number(gr_gid)+":"; | 231 | tempString=gr_name+":*:"+QString::number(gr_gid)+":"; |
232 | groupStringList.append(tempString); | 232 | groupStringList.append(tempString); |
233 | return 1; | 233 | return 1; |
234 | } | 234 | } |
235 | 235 | ||
236 | // Update fields for a group in groupStringList, take info from the gr_* variables. | 236 | // Update fields for a group in groupStringList, take info from the gr_* variables. |
237 | bool Passwd::updateGroup(int gid) { | 237 | bool Passwd::updateGroup(int gid) { |
238 | QRegExp groupRegExp(QString(":%1\\:").arg(QString::number(gid))); | 238 | QRegExp groupRegExp(QString(":%1\\:").arg(QString::number(gid))); |
239 | for(QStringList::Iterator it=groupStringList.begin(); it!=groupStringList.end(); ++it) { | 239 | for(QStringList::Iterator it=groupStringList.begin(); it!=groupStringList.end(); ++it) { |
240 | if(groupRegExp.find((*it),0)!=-1) { | 240 | if(groupRegExp.find((*it),0)!=-1) { |
241 | *it=QString(gr_name+":*:"+QString::number(gr_gid)+":"); | 241 | *it=QString(gr_name+":*:"+QString::number(gr_gid)+":"); |
242 | for(QStringList::Iterator member=gr_mem.begin(); member!=gr_mem.end(); ++member) { | 242 | for(QStringList::Iterator member=gr_mem.begin(); member!=gr_mem.end();) { |
243 | *it+=*member; | 243 | *it+=*member; |
244 | *it+=" "; | 244 | ++member; |
245 | if(member!=gr_mem.end()) *it+=","; | ||
245 | } | 246 | } |
246 | return true; | 247 | return true; |
247 | } | 248 | } |
248 | } | 249 | } |
249 | return false; | 250 | return false; |
250 | } | 251 | } |
251 | 252 | ||
252 | // Delete a group from groupStringList. | 253 | // Delete a group from groupStringList. |
253 | bool Passwd::deleteGroup(QRegExp &groupRegExp) { | 254 | bool Passwd::deleteGroup(QRegExp &groupRegExp) { |
254 | for(QStringList::Iterator it=groupStringList.begin(); it!=groupStringList.end(); ++it) { | 255 | for(QStringList::Iterator it=groupStringList.begin(); it!=groupStringList.end(); ++it) { |
255 | if(groupRegExp.find((*it),0)!=-1) { | 256 | if(groupRegExp.find((*it),0)!=-1) { |
256 | groupStringList.remove(it); | 257 | groupStringList.remove(it); |
257 | return true; | 258 | return true; |
258 | } | 259 | } |
259 | } | 260 | } |
260 | return false; | 261 | return false; |
261 | } | 262 | } |
262 | 263 | ||
263 | // Delete a group by groupname. | 264 | // Delete a group by groupname. |
264 | bool Passwd::delGroup(const char *groupname) { | 265 | bool Passwd::delGroup(const char *groupname) { |
265 | QRegExp groupRegExp(QString("^%1\\:").arg(groupname)); | 266 | QRegExp groupRegExp(QString("^%1\\:").arg(groupname)); |
266 | return deleteGroup(groupRegExp); | 267 | return deleteGroup(groupRegExp); |
267 | } | 268 | } |
268 | 269 | ||
269 | // Delete a group by gid. | 270 | // Delete a group by gid. |
270 | bool Passwd::delGroup(int gid) { | 271 | bool Passwd::delGroup(int gid) { |
271 | QRegExp groupRegExp(QString(":%1\\:").arg(gid)); | 272 | QRegExp groupRegExp(QString(":%1\\:").arg(gid)); |
272 | return deleteGroup(groupRegExp); | 273 | return deleteGroup(groupRegExp); |
273 | } | 274 | } |
274 | 275 | ||
275 | // Add a user as a member to a group in groupStringList. | 276 | // Add a user as a member to a group in groupStringList. |
276 | bool Passwd::addGroupMember(QString groupname, QString member) { | 277 | bool Passwd::addGroupMember(QString groupname, QString member) { |
277 | if(!(findGroup(groupname))) return false; | 278 | if(!(findGroup(groupname))) return false; |
278 | gr_mem << member; | 279 | QRegExp memberRegExp(QString("^%1$").arg(member)); |
280 | QStringList templist=gr_mem.grep(memberRegExp); | ||
281 | if(templist.isEmpty()) gr_mem << member; | ||
279 | if(!(updateGroup(gr_gid))) return false; | 282 | if(!(updateGroup(gr_gid))) return false; |
280 | return true; | 283 | return true; |
281 | } | 284 | } |
282 | 285 | ||
283 | // Delete a user as a groupmember from a group in groupStringList. | 286 | // Delete a user as a groupmember from a group in groupStringList. |
284 | bool Passwd::delGroupMember(QString groupname, QString member) { | 287 | bool Passwd::delGroupMember(QString groupname, QString member) { |
285 | if(!(findGroup(groupname))) return false; | 288 | if(!(findGroup(groupname))) return false; |
286 | for(QStringList::Iterator it=gr_mem.begin(); it!=gr_mem.end(); ++it) { | 289 | for(QStringList::Iterator it=gr_mem.begin(); it!=gr_mem.end(); ++it) { |
287 | if(*it==member) { | 290 | if(*it==member) { |
288 | gr_mem.remove(it); | 291 | gr_mem.remove(it); |
289 | it=gr_mem.end(); | 292 | it=gr_mem.end(); |
290 | } | 293 | } |
291 | } | 294 | } |
292 | if(!(updateGroup(gr_gid))) return false; | 295 | if(!(updateGroup(gr_gid))) return false; |
293 | return true; | 296 | return true; |
294 | } | 297 | } |
295 | 298 | ||
296 | // Global Object | 299 | // Global Object |
297 | Passwd *accounts; | 300 | Passwd *accounts; |
diff --git a/noncore/settings/usermanager/userdialog.cpp b/noncore/settings/usermanager/userdialog.cpp index c82cc9d..0d2122b 100644 --- a/noncore/settings/usermanager/userdialog.cpp +++ b/noncore/settings/usermanager/userdialog.cpp | |||
@@ -304,69 +304,84 @@ bool UserDialog::delUser(const char *username) { | |||
304 | */ | 304 | */ |
305 | bool UserDialog::editUser(const char *username) { | 305 | bool UserDialog::editUser(const char *username) { |
306 | int invalid_group=0; | 306 | int invalid_group=0; |
307 | // viewmode is a workaround for a bug in qte-2.3.4 that gives bus error on manipulating edituserDialog's widgets here. | 307 | // viewmode is a workaround for a bug in qte-2.3.4 that gives bus error on manipulating edituserDialog's widgets here. |
308 | UserDialog *edituserDialog=new UserDialog(VIEWMODE_EDIT);// Create Dialog | 308 | UserDialog *edituserDialog=new UserDialog(VIEWMODE_EDIT);// Create Dialog |
309 | edituserDialog->setCaption(tr("Edit User")); | 309 | edituserDialog->setCaption(tr("Edit User")); |
310 | accounts->findUser(username);// Locate user in database and fill variables in 'accounts' object. | 310 | accounts->findUser(username);// Locate user in database and fill variables in 'accounts' object. |
311 | if(!(accounts->findGroup(accounts->pw_gid))) {// Locate the user's primary group, and fill group variables in 'accounts' object. | 311 | if(!(accounts->findGroup(accounts->pw_gid))) {// Locate the user's primary group, and fill group variables in 'accounts' object. |
312 | invalid_group=1; | 312 | invalid_group=1; |
313 | } | 313 | } |
314 | // Fill widgets with userinfo. | 314 | // Fill widgets with userinfo. |
315 | edituserDialog->loginLineEdit->setText(accounts->pw_name); | 315 | edituserDialog->loginLineEdit->setText(accounts->pw_name); |
316 | edituserDialog->uidLineEdit->setText(QString::number(accounts->pw_uid)); | 316 | edituserDialog->uidLineEdit->setText(QString::number(accounts->pw_uid)); |
317 | edituserDialog->gecosLineEdit->setText(accounts->pw_gecos); | 317 | edituserDialog->gecosLineEdit->setText(accounts->pw_gecos); |
318 | // Set password to '........', we will later check if this still is the contents, if not, the password has been changed. | 318 | // Set password to '........', we will later check if this still is the contents, if not, the password has been changed. |
319 | edituserDialog->passwordLineEdit->setText("........"); | 319 | edituserDialog->passwordLineEdit->setText("........"); |
320 | // If this user is not using /bin/sh,/bin/ash or /bin/false as shell, add that entry to the shell-combobox. | 320 | // If this user is not using /bin/sh,/bin/ash or /bin/false as shell, add that entry to the shell-combobox. |
321 | if(accounts->pw_shell!="/bin/sh" && accounts->pw_shell!="/bin/ash" && accounts->pw_shell!="/bin/false") { | 321 | if(accounts->pw_shell!="/bin/sh" && accounts->pw_shell!="/bin/ash" && accounts->pw_shell!="/bin/false") { |
322 | edituserDialog->shellComboBox->insertItem(accounts->pw_shell,0); | 322 | edituserDialog->shellComboBox->insertItem(accounts->pw_shell,0); |
323 | edituserDialog->shellComboBox->setCurrentItem(0); | 323 | edituserDialog->shellComboBox->setCurrentItem(0); |
324 | } | 324 | } |
325 | // Select the primary group for this user. | 325 | // Select the primary group for this user. |
326 | for(int i=0;i<edituserDialog->groupComboBox->count();++i) { | 326 | for(int i=0;i<edituserDialog->groupComboBox->count();++i) { |
327 | if(accounts->gr_name==edituserDialog->groupComboBox->text(i)) { | 327 | if(accounts->gr_name==edituserDialog->groupComboBox->text(i)) { |
328 | edituserDialog->groupComboBox->setCurrentItem(i); | 328 | edituserDialog->groupComboBox->setCurrentItem(i); |
329 | break; | 329 | break; |
330 | } | 330 | } |
331 | } | 331 | } |
332 | if(invalid_group) { | 332 | if(invalid_group) { |
333 | edituserDialog->groupComboBox->insertItem("<Undefined group>",0); | 333 | edituserDialog->groupComboBox->insertItem("<Undefined group>",0); |
334 | edituserDialog->groupComboBox->setCurrentItem(0); | 334 | edituserDialog->groupComboBox->setCurrentItem(0); |
335 | } | 335 | } |
336 | |||
336 | // Select the groups in the listview, to which the user belongs. | 337 | // Select the groups in the listview, to which the user belongs. |
337 | QCheckListItem *temp; | 338 | QCheckListItem *temp; |
338 | QRegExp userRegExp(QString("[:\\s]%1\\s").arg(username)); | 339 | // BAH!!! QRegExp in qt2 sucks... or maybe I do... can't figure out how to check for EITHER end of input ($) OR a comma, so here we do two different QRegExps instead. |
340 | QRegExp userRegExp(QString("[:,]%1$").arg(username));// The end of line variant. | ||
339 | QStringList tempList=accounts->groupStringList.grep(userRegExp);// Find all entries in the group database, that the user is a member of. | 341 | QStringList tempList=accounts->groupStringList.grep(userRegExp);// Find all entries in the group database, that the user is a member of. |
340 | for(QStringList::Iterator it=tempList.begin(); it!=tempList.end(); ++it) {// Iterate over all of them. | 342 | for(QStringList::Iterator it=tempList.begin(); it!=tempList.end(); ++it) {// Iterate over all of them. |
343 | qWarning(*it); | ||
344 | QListViewItemIterator lvit( edituserDialog->groupsListView );// Compare to all groups. | ||
345 | for ( ; lvit.current(); ++lvit ) { | ||
346 | if(lvit.current()->text(0)==(*it).left((*it).find(":"))) { | ||
347 | temp=(QCheckListItem*)lvit.current(); | ||
348 | temp->setOn(true);// If we find a line with that groupname, select it.; | ||
349 | } | ||
350 | } | ||
351 | } | ||
352 | userRegExp=QRegExp(QString("[:,]%1,").arg(username));// And the other one. (not end of line.) | ||
353 | tempList=accounts->groupStringList.grep(userRegExp);// Find all entries in the group database, that the user is a member of. | ||
354 | for(QStringList::Iterator it=tempList.begin(); it!=tempList.end(); ++it) {// Iterate over all of them. | ||
355 | qWarning(*it); | ||
341 | QListViewItemIterator lvit( edituserDialog->groupsListView );// Compare to all groups. | 356 | QListViewItemIterator lvit( edituserDialog->groupsListView );// Compare to all groups. |
342 | for ( ; lvit.current(); ++lvit ) { | 357 | for ( ; lvit.current(); ++lvit ) { |
343 | if(lvit.current()->text(0)==(*it).left((*it).find(":"))) { | 358 | if(lvit.current()->text(0)==(*it).left((*it).find(":"))) { |
344 | temp=(QCheckListItem*)lvit.current(); | 359 | temp=(QCheckListItem*)lvit.current(); |
345 | temp->setOn(true);// If we find a line with that groupname, select it.; | 360 | temp->setOn(true);// If we find a line with that groupname, select it.; |
346 | } | 361 | } |
347 | } | 362 | } |
348 | } | 363 | } |
349 | 364 | ||
350 | if(!(edituserDialog->exec())) return false;// SHOW THE DIALOG! | 365 | if(!(edituserDialog->exec())) return false;// SHOW THE DIALOG! |
351 | 366 | ||
352 | accounts->findUser(username);// Fill user variables in 'acccounts' object. | 367 | accounts->findUser(username);// Fill user variables in 'acccounts' object. |
353 | accounts->pw_name=edituserDialog->loginLineEdit->text(); | 368 | accounts->pw_name=edituserDialog->loginLineEdit->text(); |
354 | // Has the password been changed ? Make a new "crypt":ed password. | 369 | // Has the password been changed ? Make a new "crypt":ed password. |
355 | if(edituserDialog->passwordLineEdit->text()!="........") accounts->pw_passwd=crypt(edituserDialog->passwordLineEdit->text(), accounts->crypt_make_salt()); | 370 | if(edituserDialog->passwordLineEdit->text()!="........") accounts->pw_passwd=crypt(edituserDialog->passwordLineEdit->text(), accounts->crypt_make_salt()); |
356 | 371 | ||
357 | // Set all variables in accounts object, that will be used when calling 'updateUser()' | 372 | // Set all variables in accounts object, that will be used when calling 'updateUser()' |
358 | accounts->pw_uid=edituserDialog->uidLineEdit->text().toInt(); | 373 | accounts->pw_uid=edituserDialog->uidLineEdit->text().toInt(); |
359 | if(accounts->findGroup(edituserDialog->groupComboBox->currentText())) {// Fill all group variables in 'accounts' object. | 374 | if(accounts->findGroup(edituserDialog->groupComboBox->currentText())) {// Fill all group variables in 'accounts' object. |
360 | accounts->pw_gid=accounts->gr_gid;// Only do this if the group is a valid group (ie. "<Undefined group>"), otherwise keep the old group. | 375 | accounts->pw_gid=accounts->gr_gid;// Only do this if the group is a valid group (ie. "<Undefined group>"), otherwise keep the old group. |
361 | } | 376 | } |
362 | accounts->pw_gecos=edituserDialog->gecosLineEdit->text(); | 377 | accounts->pw_gecos=edituserDialog->gecosLineEdit->text(); |
363 | accounts->pw_shell=edituserDialog->shellComboBox->currentText(); | 378 | accounts->pw_shell=edituserDialog->shellComboBox->currentText(); |
364 | // Update userinfo, using the information stored in the user variables stored in the accounts object. | 379 | // Update userinfo, using the information stored in the user variables stored in the accounts object. |
365 | accounts->updateUser(username); | 380 | accounts->updateUser(username); |
366 | 381 | ||
367 | // Remove user from all groups he/she is a member of. (could be done in a better way I guess, this was simple though.) | 382 | // Remove user from all groups he/she is a member of. (could be done in a better way I guess, this was simple though.) |
368 | for(QStringList::Iterator it=tempList.begin(); it!=tempList.end(); ++it) { | 383 | for(QStringList::Iterator it=tempList.begin(); it!=tempList.end(); ++it) { |
369 | accounts->delGroupMember((*it).left((*it).find(":")),username); | 384 | accounts->delGroupMember((*it).left((*it).find(":")),username); |
370 | } | 385 | } |
371 | 386 | ||
372 | // Add User to additional groups that he/she is a member of. | 387 | // Add User to additional groups that he/she is a member of. |