From b7a42d9f6a484723cec1876a06a835f93b844d45 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Tue, 6 May 2014 13:06:42 +0200 Subject: [PATCH] Fixed privileges for some jobs --- src/Api/Jobs/DeleteCommentJob.php | 2 +- src/Api/Jobs/DeletePostJob.php | 2 +- src/Api/Jobs/EditCommentJob.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Api/Jobs/DeleteCommentJob.php b/src/Api/Jobs/DeleteCommentJob.php index 00ed5da2..9e6894da 100644 --- a/src/Api/Jobs/DeleteCommentJob.php +++ b/src/Api/Jobs/DeleteCommentJob.php @@ -33,6 +33,6 @@ class DeleteCommentJob extends AbstractJob public function requiresConfirmedEmail() { - return getConfig()->registration->needEmailForCommenting; + return false; } } diff --git a/src/Api/Jobs/DeletePostJob.php b/src/Api/Jobs/DeletePostJob.php index 5f4cef37..5d1e5701 100644 --- a/src/Api/Jobs/DeletePostJob.php +++ b/src/Api/Jobs/DeletePostJob.php @@ -26,6 +26,6 @@ class DeletePostJob extends AbstractPostJob public function requiresConfirmedEmail() { - return getConfig()->registration->needEmailForCommenting; + return false; } } diff --git a/src/Api/Jobs/EditCommentJob.php b/src/Api/Jobs/EditCommentJob.php index 8315bc2d..5531bfd3 100644 --- a/src/Api/Jobs/EditCommentJob.php +++ b/src/Api/Jobs/EditCommentJob.php @@ -37,6 +37,6 @@ class EditCommentJob extends AbstractJob public function requiresConfirmedEmail() { - return getConfig()->registration->needEmailForCommenting; + return false; } }