Hmm but I dont think I can use that in a
quickfix is this
- public function canEdit($member = null)
- return Director::is_cli() || Permission::check('COURSE_EDIT');
But i'd rather not!
forgot to mention that
Oh, does that also exist in ss3?
- $admin = Security::findAnAdministrator();
Simply gives a cookie error when run via cli
because of some permissions on some of the affected models
Hmm anyone know how to "set admin user" in a
BuildTask? Its run by cron (cli), but there has to be an admin user "logged in", else the task cant do all the things it should
Has anyone experienced issues with ss4 not updating hashes on requirements (css/js), when deployed via a CI service like buddy.works ?
Hopefully it will be fixed soon!
If I have an
Image object, is there a way to get access to the Interventation library methods through it?