From 1633554517b5712ec20e246f88e878819a012ccf Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Thu, 13 Oct 2016 16:13:07 -0400 Subject: [PATCH] Updated permissions to use new glmMembersUserCan() function. --- setup/permissions.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/setup/permissions.php b/setup/permissions.php index 8647b12..1e0c902 100644 --- a/setup/permissions.php +++ b/setup/permissions.php @@ -53,4 +53,14 @@ * to permit the action. * * Of course any of these may test more than one capability if that's desired. - */ + * + * Since we have capabilities that only exist if a particular add-on (such as Contacts) + * has been loaded and activated, it can be helpful to be able to test for a capability + * for the current user and permit some action if that capability doesn't exist. The + * main plugin therefore provides the following globally accessible function that will + * return true if the capability doesn't exist, otherwise it respects the capability. + * + * glmMembersUserCan('glm_members_edit_any_member', $permit); + * + * $permit is a boolean set before this function call for passing on permissions. +*/ -- 2.17.1