-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unauthorized pages can be listed by other plugins #10
Comments
Yes, execution order matters. You can add a numeric prefix to the Please refer to the class docs of /**
* Loads plugins from Pico::$pluginsDir in alphabetical order
*
* Plugin files MAY be prefixed by a number (e.g. 00-PicoDeprecated.php)
* to indicate their processing order. Plugins without a prefix will be
* loaded last. If you want to use a prefix, you MUST consider the
* following directives:
* - 00 to 19: Reserved
* - 20 to 39: Low level code helper plugins
* - 40 to 59: Plugins manipulating routing or the pages array
* - 60 to 79: Plugins hooking into template or markdown parsing
* - 80 to 99: Plugins using the `onPageRendered` event
*
* @see Pico::getPlugin()
* @see Pico::getPlugins()
* @return void
* @throws RuntimeException thrown when a plugin couldn't be loaded
*/
protected function loadPlugins()
{
// ...
} |
Thanks, I missed that. That's fixed ! |
For now unauthorized pages are still accessible by other plugins, even if they are removed from
$pages
.In Pico 0.x I think I was loading this plugin first to avoid this issue, by underscoring its name.
What would be the correct way to hide these pages from other plugins in Pico 1.x ? A way to modify
$pages
first ? Maybe @PhrozenByte or @smcdougall ?Related to #9.
The text was updated successfully, but these errors were encountered: