|
|
| 15 |
//$Id$ |
15 |
//$Id$ |
| 16 |
|
16 |
|
| 17 |
|
17 |
|
| 18 |
import('lib.pkp.pages.login.PKPLoginHandler'); |
18 |
import('pages.login.PKPLoginHandler'); |
| 19 |
|
19 |
|
| 20 |
class LoginHandler extends PKPLoginHandler { |
20 |
class LoginHandler extends PKPLoginHandler { |
| 21 |
/** |
21 |
/** |
|
Lines 32-37
class LoginHandler extends PKPLoginHandler {
|
Link Here
|
|---|
|
| 32 |
$conference =& Request::getConference(); |
32 |
$conference =& Request::getConference(); |
| 33 |
|
33 |
|
| 34 |
if (!Validation::canAdminister($conference->getId(), $userId)) { |
34 |
if (!Validation::canAdminister($conference->getId(), $userId)) { |
|
|
35 |
$this->setupTemplate(); |
| 35 |
// We don't have administrative rights |
36 |
// We don't have administrative rights |
| 36 |
// over this user. Display an error. |
37 |
// over this user. Display an error. |
| 37 |
$templateMgr =& TemplateManager::getManager(); |
38 |
$templateMgr =& TemplateManager::getManager(); |
|
Lines 103-108
class LoginHandler extends PKPLoginHandler {
|
Link Here
|
|---|
|
| 103 |
$mail->setFrom($site->getLocalizedContactEmail(), $site->getLocalizedContactName()); |
104 |
$mail->setFrom($site->getLocalizedContactEmail(), $site->getLocalizedContactName()); |
| 104 |
} |
105 |
} |
| 105 |
} |
106 |
} |
|
|
107 |
|
| 108 |
/** |
| 109 |
* Configure the template for display. |
| 110 |
*/ |
| 111 |
function setupTemplate() { |
| 112 |
Locale::requireComponents(array(LOCALE_COMPONENT_OCS_MANAGER, LOCALE_COMPONENT_PKP_MANAGER)); |
| 113 |
parent::setupTemplate(); |
| 114 |
} |
| 106 |
} |
115 |
} |
| 107 |
|
116 |
|
| 108 |
?> |
117 |
?> |