is not used any more and exists only for history. Post new tickets on the Github account. n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 14 years ago

Closed 13 years ago

Last modified 13 years ago

#524 closed new feature (fixed)

jAcl2 : right management more simple

Reported by: laurentj Owned by: laurentj
Priority: normal Milestone: Jelix 1.1 beta 1
Component: jelix:acl Version: 1.0.2
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:


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 :


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 (1)

ticket524.patch (72.5 KB) - added by laurentj 14 years ago.
work in progress

Download all attachments as: .zip

Change History (6)

Changed 14 years ago by laurentj

work in progress

comment:1 Changed 13 years ago by laurentj

  • Milestone set to Jelix 1.1
  • Priority changed from low to normal

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 ?

comment:2 Changed 13 years ago by laurentj

  • Owner set to laurentj
  • Status changed from new to assigned

comment:3 Changed 13 years ago by laurentj

  • Resolution set to fixed
  • Status changed from assigned to closed

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

comment:4 Changed 13 years ago by laurentj

  • Documentation needed set

comment:5 Changed 13 years ago by bastnic

  • Documentation needed unset

documentation writed

Note: See TracTickets for help on using tickets.