Xarigami

resources

Access Comment legacy

Posted by: Jo on May 23, 2008 |  Updated: August 06, 2008 6:17 PM

an inherited annoyance

We have an ACCESS_COMMENT level in xaraya. This privilege level has been used in some Xaraya modules to allow those with the given privilege the ability to submit content items, eg an article, comment or other and has probably been inherited from Postnuke days.

It's a small issue, but from a useability point of view, the ACCESS_COMMENT name is inappropriate and has caused some confusion with users. It could be more appropriately renamed to ACCESS_SUBMIT.

We have updated the privilege level table in xarigami with the ACCESS_SUBMIT label, and retained the ACCESS_COMMENT label for backward compatibility. However we are stuck with some code work and a dilemma:

1. We need to update all our own core and modules to use ACCESS_SUBMIT rather than ACCESS_COMMENT, not a big job as there are few content modules that use it.

2. New code should use ACCESS_SUBMIT

3. At some point remove the old ACCESS_COMMENT entry in the level's table and update the Privileges module to dynamically access all the entries in that table when creating privileges (right now it is hard coded).

The dilemma:

We cannot update our own existing Xarigami code without making it incompatible with Xaraya 1x line. For now we want to ensure compatibility remains so the issue remains but the basic code is in place.

For now the issue rests. The change is minor but should be addressed at some point in time and this note is for reference.

Related project : xarigami core

 
« prev     next»