Closed GoogleCodeExporter closed 9 years ago
start investigation!
Original comment by nic...@creationgears.com
on 20 Apr 2011 at 1:24
fixed
Original comment by nic...@creationgears.com
on 20 Apr 2011 at 2:09
Nice work
The problem is fixed with v 1.6.4 however the version in the configuration
database table was not updated.
Could please help
Original comment by artur.ol...@gmail.com
on 20 Apr 2011 at 7:45
i know, right now it's not actually doing an update on the db... when i'll be
doing a proper update page there will be one
Original comment by nic...@creationgears.com
on 21 Apr 2011 at 10:25
After some more testing i realized that the problem was not completely solved.
If changing a user's permissions another problem appears.
Your fix is not good.
Try:
if (!isset($element_id)) {// fix for users with no admin permissions //OLIVEIRAA - ADDED OPEN BRACKET
if ((int)$formData['what'] === UserGroupsAccess::GROUP) { //OLIVEIRAA - ADDED
$element_id = UserGroupsGroup::model()->findByPk((int)$formData['id'])->id;
} else if ((int)$formData['what'] === UserGroupsAccess::USER) { //OLIVEIRAA - ADDED
$element_id = UserGroupsUser::model()->findByPk((int)$formData['id'])->id; //OLIVEIRAA - ADDED
} //OLIVEIRAA - ADDED
}
Original comment by artur.ol...@gmail.com
on 25 Apr 2011 at 10:52
Original issue reported on code.google.com by
artur.ol...@gmail.com
on 20 Apr 2011 at 1:19