The use of 'application.security.hasRole("role name")' in code is
probably what I had in mind ... Is this use case unusual somehow ?
Meaning that the security mechanism was not meant to be used this
way ? And I should better introduce additional user variables which
steer possible variations in code ? Just asking because I'm not (yet)
in the trenches ...On Sep 17, 1:25 am, Blair McKenzie <[email protected]> wrote: > First, documentation: > -https://farcry.jira.com/wiki/display/FCDEV50/Security+Introduction#Se... > > The gist is that you can add your own permissions and roles to suplement the > default ones. In fact anyone who actually needs roles (and not just > anonymous vs sysadmin) will usually end up creating their own. > > application.security.checkPermission() is good for checks against specific > known permissions. > > If you do really want to check for specific roles in code you can use > application.security.hasRole("role name"), and it will check the logged in > user. > > Blair > > On Fri, Sep 17, 2010 at 7:45 AM, verlsnake <[email protected]> wrote: > > I would like to use FarCry's authorization capabilities in code, too; > > that is I want to have the possibility to run different (business/ > > goodness/whatsoever) logic dependent on which groups/roles the user > > belongs to ... > > > Is that easily possible out of the box with the FarCry Security > > Model ? > > > -- > > You received this message cos you are subscribed to "farcry-dev" Google > > group. > > To post, email: [email protected] > > To unsubscribe, email: > > [email protected]<farcry-dev%[email protected]> > > For more options:http://groups.google.com/group/farcry-dev > > -------------------------------- > > Follow us on Twitter:http://twitter.com/farcry -- You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: [email protected] To unsubscribe, email: [email protected] For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry
