Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 10:40 am EST

Geeklog Forums

Using Universal Plugin Toolkit


Status: offline

Robin

Forum User
Full Member
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
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
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
 Quote

Status: offline

Robin

Forum User
Full Member
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
 Quote

Robin

Anonymous
Problem solved. Thanks again Blaine!
 Quote

All times are EST. The time is now 10:40 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content