Fixed user_access() call preventing moderation queue count from showing in menu

(DBOINCP-102)
This commit is contained in:
Tristan Olive 2015-06-09 12:55:16 -04:00
parent 21526a8767
commit 502137da7d
1 changed files with 1 additions and 1 deletions

View File

@ -1331,7 +1331,7 @@ function boincuser_moderate_community_access() {
* Get the count of items in the moderation queue * Get the count of items in the moderation queue
*/ */
function boincuser_moderation_queue_count() { function boincuser_moderation_queue_count() {
if (user_access(array('edit any profile content'))) { if (user_access('edit any profile content')) {
return db_result(db_query(" return db_result(db_query("
SELECT COUNT(*) SELECT COUNT(*)
FROM {node} FROM {node}