obAuth->lock(array(3)); // Only users with the group_id '3' are allowed here if (!empty($this->data)) { if ($this->Post->save($this->data)) { $this->flash('Your post has been saved.','/posts'); } } } ?>