Try
if($status_user == 0 || empty($status_user) || $status_user = '')
On Thursday, August 13, 2015 at 3:37:31 AM UTC-5, Gerculy Robert wrote:
>
> Hi,
> I'm trying to set some groups for user status :
> 0 - pending activation
> 1 - user activated
> 2 - temporary banned
> 3 - permanently banned
Did you find a solution to your status problem?
If not, please provide more information - like when are you testing for the
status value? During login or?
Are you testing with a user that you know has the expected status in the
database? Does the website show the same value?
Enjoy, John
On
Hi,
I'm trying to set some groups for user status :
0 - pending activation
1 - user activated
2 - temporary banned
3 - permanently banned - not added in examaple
My problem is no matter what I do, status 2 shows up
$status_user = $this-Session-read('Auth.User.status');
if($status_user ==