Skip to content

Commit

Permalink
Fixed issue: In demo mode it is possible to change the admin password
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Aug 24, 2016
1 parent 317b1f2 commit 457ffef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/admin/useraction.php
Expand Up @@ -677,7 +677,7 @@ public function personalsettings()
'full_name'=> Yii::app()->request->getPost('fullname'),
'email'=> Yii::app()->request->getPost('email')
);
if (Yii::app()->request->getPost('password')!='')
if (Yii::app()->request->getPost('password')!='' && !Yii::app()->getConfig('demoMode'))
{
if (Yii::app()->request->getPost('password')==Yii::app()->request->getPost('repeatpassword'))
{
Expand Down

0 comments on commit 457ffef

Please sign in to comment.