Harro Verton wrote on Wednesday 4th of January 2012:I don't see this to be an oil bug. The question is, why does Sentry's migrations require the package to be loaded? The answer is: it tries to load the sentry config file from the package. So, the bug is that the migration doesn't ensure that the package is loaded. This can be fixed by adding "\Package::load('sentry');" in the migrations file, in between the namespace definition and the class definition.
Daniel Petrie wrote on Wednesday 4th of January 2012:Hmm.. I'll have to add that in, didn't realize it worked that way. Always just did the always load.
Looks like there's a 2.0 dev version for Fuel:Peter wrote on Wednesday 23rd of May 2012:Will Sentry 2 (with ACL?) be developed for FuelPHP too or just for Laravel?
$valid_login = Sentry::login($email, $password, true); if ($valid_login) { if (Sentry::user()->in_group(1)) { // or in_group('editors'); Session::set('admin', true); } Response::redirect('home'); return true; } else { Session::set_flash('error', 'invalid email / password combo'); return false; }
$session = Session::instance('sentry_rm');
dpetrie wrote on Tuesday 22nd of May 2012:Note to everyone using sentry, the repo name has changed to sentry-fuel from sentry.
I too use complex roles and cant seem to get my head around nested groups and there is nothing mentioned in the docs. WanWizard any chance you can give an example of how to use nested groups for roles. ThanksHarro Verton wrote on Wednesday 28th of December 2011:I don't really like using levels, too many nasty experiences with it when your authorisation gets more complex. I now tend to use it as a boolean: 0 = user, 1 = administrator. As for roles, a role is just a name, so you could use groups for it. I've send a pull request a few days ago to support nested groups, allowing for a bit more flexibility.
Daniel Petrie wrote on Saturday 21st of January 2012:We haven't put in role support yet, jut basic groups. It is planned for down the road though when we get a chance to start adding new features again. As to the nested groups, I don't think we've touched any of your code that you wrote for it WanWizard, I just added the column to migrations.
I think something went wrong there, the parent should be a group id, so an int like the primary key. It's now defined as varchar(200)...Daniel Petrie wrote on Saturday 21st of January 2012:I don't think we've touched any of your code that you wrote for it WanWizard, I just added the column to migrations.
Harro Verton wrote on Sunday 22nd of January 2012:I think something went wrong there, the parent should be a group id, so an int like the primary key. It's now defined as varchar(200)...Daniel Petrie wrote on Saturday 21st of January 2012:I don't think we've touched any of your code that you wrote for it WanWizard, I just added the column to migrations.
alt 332 wrote on Monday 23rd of January 2012:hello, i'm a beginner user for fuel and testing auth(sentry) package. When I migrate the sentry package, it inserted users table with id, username & etc.... I wonder can i use user_id instead of id. how can I change that?
It looks like you're new here. If you want to get involved, click one of these buttons!