Posted on: 08/01/03 09:24am
By: Robin
I\'ve been using the kit and I have a question regarding generic install.php. The problem is with access asignment. I created a Plugin Admin group and 2 features. One is plugin.admin (for admins only) and another is plugin.edit (for logged in users). I didn\'t want to create additional group, as I want this plugin available to registered user i.e. Logged-in. During install everything works perfect. However the two features are assigned in access table to the plugin Admin Group. Then the registered users can\'t access pages they should do. After changing acc_grp_id, in gl_access table, into 13 (which is Logged-in users) for the plugin.edit feature, users can access the plugin functions. My question is how to modify, what to add in install.php so the access is granted correctly.
Re:Using Universal Plugin Toolkit
Posted on: 08/01/03 09:52am
By: Blaine
Robin,
First, please don\'t call your feature rights plugin.xxxx - that is too generic or maybe you were just using name for explaination. It should be the name of your plugin.
The install script as you pointed out only does the auto-assignment for the root group - which is ID of 1. You would need to replicate the assigment of the feature INSERT SQL in the foreach loop for group 13 and then create a new record in the group_assignment table for group 13 which follows.
Or -- just use my Group Security admin block that I wrote but I know you want to have this done on install. I don\'t do add this these rights to this group on install because many users may not want this by default.
Re:Using Universal Plugin Toolkit
Posted on: 08/01/03 10:13am
By: Robin
Thank you Blaine. I\'ll try to overcome it. Yes it was only for explanation.
Re:Using Universal Plugin Toolkit
Posted on: 08/04/03 04:41am
By: Anonymous (Robin)
Problem solved. Thanks again Blaine!