Summary | Permission sql driver |
Queue | Horde Framework Packages |
Queue Version | HEAD |
Type | Enhancement |
State | Resolved |
Priority | 1. Low |
Owners | chuck (at) horde (dot) org |
Requester | duck (at) obala (dot) net |
Created | 01/25/2008 (6375 days ago) |
Due | |
Updated | 04/10/2008 (6299 days ago) |
Assigned | 04/10/2008 (6299 days ago) |
Resolved | 04/10/2008 (6299 days ago) |
Milestone | |
Patch | Yes |
State ⇒ Resolved
http://lists.horde.org/archives/cvs/Week-of-Mon-20080407/077159.html
State ⇒ Assigned
3.1_to_3.2 upgrade script. The schema also does not appear in the
scripts/sql directory. This is in a FRAMEWORK_3 checkout from tonight.
dependencies/references out and make this work without them. Thanks!
horde/admin/perms/add_child.php.
Assigned to Chuck Hagenbuch
State ⇒ Resolved
dependencies/references out and make this work without them. Thanks!
even without the rest of this (though I'm working on the full patch
too). Thanks again.
New Attachment: sql[1].php
Works on all my installations.
New Attachment: sql.php
Finished.
Priority ⇒ 1. Low
State ⇒ New
New Attachment: perms.tgz
Queue ⇒ Horde Framework Packages
Summary ⇒ Permission sql driver
Type ⇒ Enhancement
Permission actually uses only id, name, parents and data colum for
serialize its attributes. So with this driver you get a very small and
fast table loading only the data needed when needed. And even loads
and connect the db objeject only when need, as the comon calls are
only hasPermission and exists and if you use cache you will never
build anoter DB conenction to check a premission.
You also need the apply the perms.diff to the permissions UI as one
datatree call is harcoded. As the permission driver, but this you must
change it by your own.
Files:
- perms.sql, horde_perms table structure
- migrate.php: moves your current permissons to a flat table
- perms.diff current UI fix
- sql.php driver to out in Horde/Perms/sql.php
- test.php, runs all driver methods for result coparations