largersmallernormaltext version of this page

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014943phplistPHPlistpublic05-06-08 17:3905-06-08 17:53
Reporterjulian 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusnewResolutionopen 
PlatformOSOS Version
Product Version 
Target Version2.11.XFixed in Version 
Summary0014943: [How to] Admins process only their own lists.
DescriptionPossible feature posted in the following forum thread:

http://forums.phplist.com/viewtopic.php?p=48926#48926 [^]


"We have multiple admins looking after multiple lists but only wanted each list owner to be able to process their own queue and not the whole queue as is the default for the system.

The answer lies in processqueue.php
You need to make the following modifications to line 326

Change
Code:
$messages = Sql_query("select id,userselection,rsstemplate,subject from ".$tables["message"]." where status != \"draft\" and status != \"sent\" and status != \"prepared\" and status != \"suspended\" and embargo < now() order by entered");

to read
Code:

# This is for the Super User to send absolutely anything
$messages = Sql_query("select id,userselection,rsstemplate,subject from ".$tables["message"]." where status != \"draft\" and status != \"sent\" and status != \"prepared\" and status != \"suspended\" and embargo < now() order by entered");

if (!isSuperUser()) {
$messages = Sql_query("select id,userselection,rsstemplate,subject from ".$tables["message"]." where status != \"draft\" and status != \"sent\" and status != \"prepared\" and status != \"suspended\" and embargo < now() and owner = ". $_SESSION["logindetails"]["id"] ." order by entered");
}


This will check if the user isn't a superuser and if they are not the system will only select the messages that they created as the owner, and process them in the queue."
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker