DX Auth/User entries' status--conditional stuff...help! - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: DX Auth/User entries' status--conditional stuff...help! (/showthread.php?tid=20955) |
DX Auth/User entries' status--conditional stuff...help! - El Forum - 07-26-2009 [eluser]K.Brown[/eluser] I don't know what to call it, really--I'm a CI noob! I'm using DX Auth, and making a simple posting system. Here's how I'd like it to work: 1. Site lists entries of various users. 2. Entries that have been submitted by users first have a status "pending" (to be reviewed). 3. When a user is logged in they can see their entry with the text beside saying "Pending Approval" 4. If the user is an admin, they can see all the posts--no matter what the status is. 5. If the user is an admin, they can click a button beside the list that says "Approve" and it will change the status to "open" via ajax! This is my current model: Code: function getLivePosts($limit){ I'm open to any suggestions! |