aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/configureController.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-10-07 17:28:56 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-10-07 17:28:56 +0200
commit99cdd2a0ad7d0c0bf8965ddac2661cfa4c57809d (patch)
treef8cd10a71e2def0c61934e8751012829e4349b1f /app/Controllers/configureController.php
parent530a1d4b6b043f6b6976bb7ad25b380c29d5b5a4 (diff)
parentdbf57266b297c3f831602ec4f451c27a5ad71e6b (diff)
Merge branch 'refactor-authentication' into dev
Diffstat (limited to 'app/Controllers/configureController.php')
-rwxr-xr-xapp/Controllers/configureController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Controllers/configureController.php b/app/Controllers/configureController.php
index 789e9dfb0..fb8c1466e 100755
--- a/app/Controllers/configureController.php
+++ b/app/Controllers/configureController.php
@@ -10,7 +10,7 @@ class FreshRSS_configure_Controller extends Minz_ActionController {
* underlying framework.
*/
public function firstAction() {
- if (!$this->view->loginOk) {
+ if (!FreshRSS_Auth::hasAccess()) {
Minz_Error::error(
403,
array('error' => array(_t('access_denied')))
@@ -229,7 +229,7 @@ class FreshRSS_configure_Controller extends Minz_ActionController {
$this->view->nb_total = $entryDAO->count();
$this->view->size_user = $entryDAO->size();
- if (Minz_Configuration::isAdmin(Minz_Session::param('currentUser', '_'))) {
+ if (FreshRSS_Auth::hasAccess('admin')) {
$this->view->size_total = $entryDAO->size(true);
}
}