Ticket #524 (closed new feature: fixed)

Opened 8 months ago

Last modified 5 months ago

jAcl2 : right management more simple

Reported by: laurentj Assigned to: laurentj
Priority: normal Milestone: Jelix 1.1 beta 1
Component: jelix:acl Version: 1.0.2
Severity: normal Keywords:
Cc: Php version:
Review: Hosting Provider:
Documentation needed: 0 Blocking:

Description

jAcl is complex because of values management. And in fact, there is no really need of this values management. Ex : in jAcl, we have to do

jAcl::check('cms.articles', 'MODIFY');

In jAcl2, we remove values, so we could do only :

jAcl2::check('cms.articles.modify');

eg, we defines differents subjects, instead of defining a subject, and then some available values.

Concretely, in the acl.db driver, the tables 'jacl_right_values' and 'jacl_right_values_group' are removed. And in jacl_rights table, there are no more "value" field. We could add a new table, jacl2_subject_group, to create group of subject. It will be useful to facilitate the management of rights in a user interface.

jAcl2 will be easier understandable than jAcl.

Attachments

ticket524.patch (72.5 kB) - added by laurentj on 03/27/08 13:26:49.
work in progress

Change History

03/27/08 13:26:49 changed by laurentj

  • attachment ticket524.patch added.

work in progress

03/27/08 14:03:13 changed by laurentj

  • priority changed from low to normal.
  • milestone set to Jelix 1.1.

it works, but some things are still missing

  • command line interface to manage rights
  • perhaps could we merge jAcl and jAcl2, and the behavior could be change with a pref in the configuration ?

03/27/08 14:03:30 changed by laurentj

  • status changed from new to assigned.
  • owner set to laurentj.

04/06/08 20:37:02 changed by laurentj

  • status changed from assigned to closed.
  • resolution set to fixed.

command line interface is ok now. All have been committed into the trunk. svn 864.

04/07/08 11:03:25 changed by laurentj

  • docneeded set to 1.

06/18/08 17:52:16 changed by bastnic

  • docneeded deleted.

documentation writed

Download in other formats: Comma-delimited Text Tab-delimited Text RSS Feed