Katie Horn has submitted this change and it was merged.

Change subject: add permissions hook for wmf_audit
......................................................................


add permissions hook for wmf_audit

Change-Id: I2ce4b5a6df71ca90f149451e8dea8414d81d31c5
---
M sites/all/modules/wmf_audit/wmf_audit.module
1 file changed, 16 insertions(+), 0 deletions(-)

Approvals:
  Katie Horn: Looks good to me, approved



diff --git a/sites/all/modules/wmf_audit/wmf_audit.module 
b/sites/all/modules/wmf_audit/wmf_audit.module
index 4f2cd91..982d223 100644
--- a/sites/all/modules/wmf_audit/wmf_audit.module
+++ b/sites/all/modules/wmf_audit/wmf_audit.module
@@ -21,6 +21,22 @@
 }
 
 /**
+ * Implements hook_permission.
+ *
+ * Exported permissions are:
+ *    administer wmf_audit
+ *
+ * @return array of exported permissions.
+ */
+function wmf_audit_permission() {
+  return array(
+    'administer wmf_audit' => array(
+        'title' => 'Configure the wmf_audit module',
+    ),
+  );
+}
+
+/**
  * Callback for menu
  */
 function wmf_audit_settings() {

-- 
To view, visit https://gerrit.wikimedia.org/r/168435
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I2ce4b5a6df71ca90f149451e8dea8414d81d31c5
Gerrit-PatchSet: 2
Gerrit-Project: wikimedia/fundraising/crm
Gerrit-Branch: master
Gerrit-Owner: Awight <[email protected]>
Gerrit-Reviewer: Ejegg <[email protected]>
Gerrit-Reviewer: Katie Horn <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to