sproctor / php-calendar

PHP-Calendar
http://www.php-calendar.org/
Apache License 2.0
140 stars 67 forks source link

Permission errors #25

Closed sabas closed 11 years ago

sabas commented 11 years ago

From the ToDo list When a user tries to access a page that requires permissions, give them a login screen if they aren't logged in

function permission_error($message)

in util.php line 33 could give a warning (with ui-state-warning) and redirect to login page

sproctor commented 11 years ago

There is no ui-state-warning. If they're logged in, I added ui-state-error. If they aren't, I redirected it to the login page.