Changes between Version 9 and Version 10 of BluePrintAuthorizationB
- Timestamp:
- 06/20/10 14:38:26 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BluePrintAuthorizationB
v9 v10 46 46 47 47 === Denial of access === 48 49 - '''shn_unauthorized()''' realizes error notification and redirection as appropriate 48 {{{ 49 shn_unauthorized(msg="You're not allowed to access this module") 50 }}} 51 - ''shn_unauthorized()'' realizes error notification and redirection as appropriate 50 52 - non-interactive modes: 51 53 - raise a HTTP error and a JSON error message 52 - DONOT REDIRECT!54 - MUST NOT REDIRECT! 53 55 - interactive modes, one of: 54 56 - redirect (e.g. to login) and and display an error message on the target page (acceptable) 55 57 - raise a HTTP error and display an error page, provide redirection options from the error page (more RESTful) 56 - shn_unauthorized() takes an optional error message as argument57 58 59 - the ''msg'' argument is optional 58 60 === Module/Controller Access === 59 61