This topic is locked

Dynamic Permissions

4/24/2008 10:09:39 PM
PHPRunner General questions
H
horsey_kim author

I have an database that I used with phprunner 4.1 - I decided I wanted to rebuild everything and use the dynamic permission and still use the data I have in the database. I deleted all the files from my server directory. Created a new project and connected nicely. I started by making it simple with just one table and then set the dynamic permission to create the tables and assigned one of the logins from my user table I had before.
I loaded everything, and I can login and get the one view I created and the admin area. BUT I try to update "Assign users to groups" and it shows everyone and I go thru and check what group I want them in and press save. All the checks disappear. Only the one admin show up. I even went to the table to see what fields were entered and it shows no change.
Any ideas or suggestions?
I have even tried it with several of the templates thinking maybe there was error in that template for that screen. But all result in the same way. I used amsterdam, paris, and default.
Since I am on a deadline, I decided to go back to static permission. However I would appreciate any input as to maybe something I might check as to why the problem. Because I do plan on using this feature for another project.
Thanks so much for any advice,
Kim

J
Jane 4/25/2008

Kim,
thank you for pointing me to this bug.

We'll fix it in the next update.
To make your pages working open C:/Program Files/PHPRunner4.2/source/ug_members.php file, find this line:

// $smartygroup["name"]="name=\"cb".$recno."[]\" value=\"".$g[0]."\"";



and replace it with this one:

$smartygroup["name"]="name=\"cb".$recno."[]\" value=\"".$g[0]."\"";


Then open and rebuild your project.

H
horsey_kim author 4/25/2008

Thanks Jane <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=28545&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />
I found that line in my editor on line 484, if that helps anyone who needs to change it. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=28545&image=2&table=forumreplies' class='bbc_emoticon' alt=':)' /> <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=28545&image=3&table=forumreplies' class='bbc_emoticon' alt=':)' />