mirror of https://github.com/BOINC/boinc.git
Fixed user_access() call preventing moderation queue count from showing in menu
(DBOINCP-102)
This commit is contained in:
parent
21526a8767
commit
502137da7d
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue