Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#38 ACL support for slashcode 2.0.0

closed-out-of-date
Brian Aker
5
2001-09-20
2001-05-10
No

This patch includes functions to manage ACLs for the
users.
When a user access slashcode web it receives with the
other
params the ACLs she has.

I have to modify Slash::DB::MySQL getUser and setUser
functions
and Slash::Utility to include the manage functions.

You need to create a new table calles users_acl. In
this table
will live all the information about the ACLs and the
users.

ACL is an acronym fro Access Control List and it is a
mechanism very powerfull to give power to the users in
a very precise way.

To apply the patch copy the file in the main slashcode2
directory and execute:

bash-2.03$ tar xvfz slash-2.0.0-acl.tgz
slash2-bp/ACL.patch
slash2-bp/sql/mysql/users_acl.sql
bash-2.03$ patch -p0 < slash2-bp/ACL.patch
patching file `Slash/DB/MySQL/MySQL.pm'
patching file `Slash/Utility/Utility.pm'
bash-2.03$ mysql slash <
slash2-bp/sql/mysql/users_acl.sql

Where slash is your database. The script for the
database only
works with MySQL but it's very easy to modify it for
Postgres
or Oracle.

If you have any problem please, contact me:
acs@barrapunto.com

Discussion

  • The patch and the script to create the database

     
    Attachments
  • Chris Nandor
    Chris Nandor
    2001-06-25

    • assigned_to: nobody --> krow
     
  • Brian Aker
    Brian Aker
    2001-09-20

    • status: open --> closed-out-of-date
     
  • Brian Aker
    Brian Aker
    2001-09-20

    Logged In: YES
    user_id=25967

    Tables have been added