Problem with checkUserGroup()
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Problem with checkUserGroup()
Hello,
There is something strange with the function checkUserGroup().
In a really simple case checkUserGroup($this, 'admin'), it returns false where it should return true.
In my case, the problem is on that line :
https://github.com/aimeos/aimeos-larave ... rt.php#L82
my $user->siteid is int(1)
my $siteid is string(1) "1"
Is this a bug or a misconfiguration?
Thank you very much !
sbn
There is something strange with the function checkUserGroup().
In a really simple case checkUserGroup($this, 'admin'), it returns false where it should return true.
In my case, the problem is on that line :
https://github.com/aimeos/aimeos-larave ... rt.php#L82
my $user->siteid is int(1)
my $siteid is string(1) "1"
Is this a bug or a misconfiguration?
Thank you very much !
sbn
Re: Problem with checkUserGroup()
Seems like both should be casted to "string" before comparision. Can you create PR in the https://github.com/aimeos/aimeos-laravel repository for that?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star