Welcome Guest, Not a member yet? Register   Sign In
Ion Auth - Lightweight Auth System based on Redux Auth 2

[eluser]c77m[/eluser]
[quote author="fran-quero" date="1298168229"]Hello. Congratullations for this great library.

I´m new in CI and I´m testing Ion Auth in a test application.

I´d like to set access based on groups.

1. I haven´t see that in the code. Is there any pre-made function or way to do it?
[/quote]

fran-quero,

There is already a function, is_group(), that will check group membership for you. (http://benedmunds.com/ion_auth/#is_group)

Quote:
Code:
if($user=$this->ion_auth->get_user())

As written, this will always return true. ;-)


Messages In This Thread
Ion Auth - Lightweight Auth System based on Redux Auth 2 - by El Forum - 02-19-2011, 02:24 PM



Theme © iAndrew 2016 - Forum software by © MyBB