Quick question. I have thus far utilized filters for my login
framework. In every event that requires a user is logged in:
<filter name="systemUserPermissionsFilter">
<parameter name="permission_required" value="9" />
</filter>
permission_required defines, surprisingly enough, the permission
required to access this event. Now this allows me to set the
permissions required in every event at the mach-ii.xml level. If I
were to use a plugin to accomplish this, how would the plugin read the
permission required, as defined in the mach-ii.xml event definition.
Take a look a this:
<event-handler event="processAffiliateCounselAdd" access="public">
<event-arg name="permission_required" value="9" />
<notify listener="affiliateListener"
method="processAffiliateCounselAdd" />
<redirect event="showAffiliateManager" />
…
</event-handler>
Then, somehow have a plugin read the permission_required event-
argument and work with that so that I don’t have to include a filter
block in every event. I think my only solution is to use a plugin
that keeps some event-permission list separately from my event
definition in mach-ii.xml, such as [{processAffiliateCounselAdd, 9},
….], which I don’t want to d. So is my best bet to stick with a
filter for my events? 99.9% of my events currently require this
filter line, and each have their own set of permissions required.
Know what I mean?
Cheers!
-Brian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to Mach-II for CFML list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
SVN: https://greatbiztoolsllc-svn.cvsdude.com/mach-ii/
Wiki / Documentation / Tickets:
http://greatbiztoolsllc-trac.cvsdude.com/mach-ii/
-~----------~----~----~----~------~----~------~--~---