Dolphiq / craft3-plugin-sitemap

A craft 3 plugin that provides an easy way to enable and manage an XML sitemap for search engines like Google
MIT License
28 stars 18 forks source link

Moved `\Craft::$app->user->identity` into the event handler #13

Closed Tam closed 6 years ago

Tam commented 6 years ago

A fix for ethercreative/simplemap#84.

Calling \Craft::$app->user->identity loads up a bunch of stuff which can cause issues if plugins are loaded in a certain order. Moving the check to within the event handler fixes this issue.

johanzandstra commented 6 years ago

thnx