Feature Requests: Browse | Submit New | Admin

[#27877] Cleaner integration of methods into ApplicationController

Date:
2010-02-23 16:34
Priority:
3
Submitted By:
René van den Berg (reneb)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Cleaner integration of methods into ApplicationController

Detailed description
The integration of the CBAC methods into the ApplicationController is currently risky, since there is a pretty big chance
of name clashes. For example, the AuthenticatedSystem plugin also has a method called "current_user", which
returns a complete User model instead of an integer for the user's id.

Cleaner integration could be accomplished by clearly setting the methods apart from other methods by prefixing them
with "cbac", such as "cbac_current_user" instead of "current_user".

Add A Comment: Notepad

Please login


Followup

Message
Date: 2010-06-09 11:55
Sender: René van den Berg

current_user has been renamed to current_user_id to allow for
integration between AuthenticatedSystem and CBAC. (Also, the
method name is better, since it returns an id and not a User
object or some such).

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item