First, documentation:
-
https://farcry.jira.com/wiki/display/FCDEV50/Security+Introduction#SecurityIntroduction-Permissions

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

Reply via email to