Reply to thread

[CODE=php]    public function postSave()

    {

        parent::postSave();

       

        if (

            $this->config['permissionContentType']

            && $this->getOption('rebuildCache')

            && $this->entity->isInsert()

            && \XF::app()->get('app.classType') == 'Pub'

        )

        {

            // Public doesn't immediately run this

            $this->app()->jobManager()->runUnique('permissionRebuild', 2);

        }

    }[/CODE]

Appears to have done the trick :)


I still think something should be changed in order to allow use cases where permission-based content can also be created via the front-end without hacks, but for me personally I don't mind a quick wee extension :)


Other than that, everything else seems to work fine.


Can't say the same for installing the XF Importers as even after upgrade it still says I need XF 2.0.3, but that's for a separate thread if one hasn't been created already :)



Fillip


Back
Top Bottom