fixed: a passwd winix function should allow a non loged person to reset his password (permission fix)

git-svn-id: svn://ttmath.org/publicrep/winix/trunk@927 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
Tomasz Sowa 2013-05-16 20:08:07 +00:00
parent 7c266b85e2
commit 81160dbbe9
1 changed files with 5 additions and 1 deletions

View File

@ -25,7 +25,8 @@ Passwd::Passwd()
bool Passwd::HasAccess()
{
return cur->session->puser != 0;
// a not logged user can use this function to reset his password
return true;
}
@ -282,6 +283,9 @@ void Passwd::MakeGet()
{
if( cur->request->IsParam(L"resetpassword") )
ShowResetPasswordForm();
else
if( !cur->session->puser )
cur->request->status = WINIX_ERR_PERMISSION_DENIED;
}