Author: sevein
Date: Tue Jun 26 12:34:33 2012
New Revision: 11808
Log:
Return 403 Forbidden status code, very useful to handle erros on the
client-side code
Modified:
trunk/plugins/qbAclPlugin/lib/QubitAcl.class.php
Modified: trunk/plugins/qbAclPlugin/lib/QubitAcl.class.php
==============================================================================
--- trunk/plugins/qbAclPlugin/lib/QubitAcl.class.php Tue Jun 26 12:01:53
2012 (r11807)
+++ trunk/plugins/qbAclPlugin/lib/QubitAcl.class.php Tue Jun 26 12:34:33
2012 (r11808)
@@ -549,6 +549,8 @@
public static function forwardUnauthorized()
{
+ sfContext::getInstance()->response->setStatuscode(403);
+
if (!sfContext::getInstance()->user->isAuthenticated())
{
self::forwardToLoginAction();
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.