| Anonymous | Login | Signup for a new account | 02-09-10 22:09 GMT | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||
| 0014943 | phplist | PHPlist | public | 05-06-08 17:39 | 05-06-08 17:53 | ||||||
| Reporter | julian | ||||||||||
| Priority | normal | Severity | minor | Reproducibility | have not tried | ||||||
| Status | new | Resolution | open | ||||||||
| Platform | OS | OS Version | |||||||||
| Product Version | |||||||||||
| Target Version | 2.11.X | Fixed in Version | |||||||||
| Summary | 0014943: [How to] Admins process only their own lists. | ||||||||||
| Description | Possible 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." | ||||||||||
| Tags | No tags attached. | ||||||||||
| Attached Files | |||||||||||
| Copyright © 2000 - 2010 MantisBT Group |