davorian / flexible-chimp

Automatically exported from code.google.com/p/flexible-chimp
0 stars 0 forks source link

About Chimp Framework Capabilitie #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am A chimp user and I need to know is there a way of doing dinamically(in 
action script) set provileges instead of using Metadata tag as follows?

<fx:Metadata>
[Protected(permissions="admin",inPermissionAction="{str}",componentId="btnAdd")]

I need to store those every variables in database(not in <fx:Metadata> tag ) 
and load those from database and set permissions/privileges in front-end.
In my senario admin,str,btnAdd are variables.Is it possible to do it using 
Chimp framework?
Thanks

Original issue reported on code.google.com by sanka...@gmail.com on 14 Mar 2011 at 3:58

GoogleCodeExporter commented 9 years ago
I'm just a user of this library so I'm not a strong authority on it.

What you want is not possible out-of-the box with Chimp. You can't dynamically 
change the components security metadata.

On the other hand, a dynamic behavior is achievable via the 
Chimp.updatePerms([...]) method. Hence, the list of permissioned actions is 
dynamic and good enough for most cases. I agree though that the feature you 
sought would be useful.

Original comment by jimlero...@gmail.com on 16 Mar 2011 at 8:01