diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-07 21:40:05 -0700 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-07 21:40:05 -0700 |
| commit | 03d0311618267cf0b16445161c4d275749d64a5e (patch) | |
| tree | a4143bcca595e8724e5fd516d17f8b26daa1ee4e /modules/gallery/helpers/gallery_theme.php | |
| parent | b3211cb2a8282556d410c91771baeb764d47ed10 (diff) | |
Implement a user::is_writable() API method and disable the user add, updates and display if the Identity driver does not support writes. This is set in the config.identity.php
Diffstat (limited to 'modules/gallery/helpers/gallery_theme.php')
| -rw-r--r-- | modules/gallery/helpers/gallery_theme.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gallery/helpers/gallery_theme.php b/modules/gallery/helpers/gallery_theme.php index a342b4bd..54b35fb7 100644 --- a/modules/gallery/helpers/gallery_theme.php +++ b/modules/gallery/helpers/gallery_theme.php @@ -55,6 +55,7 @@ class gallery_theme_Core { if ($theme->page_type != "login") { $view = new View("login.html"); $view->user = user::active(); + $view->writable = user::is_writable(); return $view->render(); } } |
