Conditional Resource Sets

Nov 23, 2010 at 9:41 PM

Is it possible to create conditional resource sets based on a server side variable or app config?

For example I have a resource set called "homeJs".  I want this resource set to contain different files depending on the user's role.

If this is not currently possible could anyone point me in the right direction as far as how to create a plugin/extension to do this?

Thanks,

Phil

Nov 24, 2010 at 8:07 PM

What about handling this on the client? Creating different resource sets and referencing them like

<%= Url.CombresLink("siteJs_"+ User.Role) %>

Nov 24, 2010 at 8:52 PM
burningice wrote:

What about handling this on the client?

If possible I'd like to keep the idea of role hidden from the client for security reasons.  For example I don't want someone trying to change the role on the url to try to gain access to functionality they would not have otherwise.

Jan 25, 2011 at 4:29 AM
for admin:
<%= Url.CombresLink("siteJs_q3o7m3r8n9u3sk"+ User.Role) %>

for user:
<%= Url.CombresLink("siteJs_o3e7j4v9u"+ User.Role) %>

etc...
you could achieve this easily writing a http module (if path is protected check current user role if has no permission then return 404),
a Routing filter or editing combres source code ;)