diff options
author | Florian Pritz <bluewind@xinu.at> | 2012-04-09 00:16:32 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2012-04-09 20:48:03 +0200 |
commit | ccf2d88f9e17bc2884d31cee9ce4ae2ab563b8c1 (patch) | |
tree | 64b240e39a27c6451fab6eebe1e76495104c58df /application/models | |
parent | 58bb9bb7cbee7d9d01f35aaca88d14fce8e39270 (diff) |
Improve handling of cli clients without account
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/models')
-rw-r--r-- | application/models/muser.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/application/models/muser.php b/application/models/muser.php index 81fd1eb10..5ba4b4922 100644 --- a/application/models/muser.php +++ b/application/models/muser.php @@ -56,8 +56,12 @@ class Muser extends CI_Model { if ($this->logged_in()) { return true; } else { - $this->session->set_flashdata("uri", $this->uri->uri_string()); - redirect('user/login'); + if ($this->file->var->cli_client) { + echo "FileBin requires you to have an account, please go to the homepage for more information."; + } else { + $this->session->set_flashdata("uri", $this->uri->uri_string()); + redirect('user/login'); + } } } |