Skip to content

Add filters for addon/app installed checks and docs

M. Dent requested to merge dentm42/core:app-installed-filters into dev

Additional filters in Zotlabs/Lib/Apps.php to allow pre-emption of installed apps/addons by plugins.

FUNCTIONS AFFECTED:

        static public function app_installed($uid,$app,$bypass_filter=false) {
        static public function addon_app_installed($uid,$app,$bypass_filter=false) {
        static public function system_app_installed($uid,$app,$bypass_filter=false) {

Intended for administrative plugins that may want to pre-empt access to certain features based on account service_class or other criteria (eg. payment status, breach of server terms, or other).

These filters can be bypassed by lower level functions (eg., to enable updates via clone synchronization) by adding a 3rd parameter (true) to the function call of the functions.

Edited by M. Dent

Merge request reports

Loading