Welcome to Geeklog Wednesday, June 19 2013 @ 03:06 PM EDT
|
||||||||
![]() |
Forum Index > Support > Plugin Support |
New Topic
|
Post Reply
|
Using Universal Plugin Toolkit |
|||
| Robin |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member Status: offline ![]() Registered: 02/15/02 Posts: 725 |
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.
Geeklog Polish Support Team |
||||||
|
|||||||
| Blaine |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member ![]() Status: offline ![]() Registered: 07/16/02 Posts: 1233 |
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. Geeklog components by PortalParts -- www.portalparts.com |
||||||
|
|||||||
| Robin |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member Status: offline ![]() Registered: 02/15/02 Posts: 725 |
Thank you Blaine. I\'ll try to overcome it. Yes it was only for explanation.
Geeklog Polish Support Team |
||||||
|
|||||||
| Anonymous: Robin |
|
||||||
|
|
Problem solved. Thanks again Blaine!
|
||||||
|
|||||||
| Content generated in: 1.46 seconds |
|
|
|