| | 546 | // remove the action entry |
|---|
| | 547 | $nb = $actionStack->getSize() - $index; |
|---|
| | 548 | while ($nb-- > 0) |
|---|
| | 549 | { |
|---|
| | 550 | $actionEntry = $actionStack->popEntry(); |
|---|
| | 551 | |
|---|
| | 552 | if ($actionEntry->getModuleName() == sfConfig::get('sf_login_module') && $actionEntry->getActionName() == sfConfig::get('sf_login_action')) |
|---|
| | 553 | { |
|---|
| | 554 | $error = 'Your action is secured but the user is not authenticated.'; |
|---|
| | 555 | |
|---|
| | 556 | throw new sfException($error); |
|---|
| | 557 | } |
|---|
| | 558 | else if ($actionEntry->getModuleName() == sfConfig::get('sf_secure_module') && $actionEntry->getActionName() == sfConfig::get('sf_secure_action')) |
|---|
| | 559 | { |
|---|
| | 560 | $error = 'Your action is secured but the user does not have access.'; |
|---|
| | 561 | |
|---|
| | 562 | throw new sfException($error); |
|---|
| | 563 | } |
|---|
| | 564 | } |
|---|
| | 565 | |
|---|