summaryrefslogtreecommitdiff
path: root/modules/gallery/views/login.html.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-10-07 21:40:05 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-10-07 21:40:05 -0700
commit03d0311618267cf0b16445161c4d275749d64a5e (patch)
treea4143bcca595e8724e5fd516d17f8b26daa1ee4e /modules/gallery/views/login.html.php
parentb3211cb2a8282556d410c91771baeb764d47ed10 (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/views/login.html.php')
-rw-r--r--modules/gallery/views/login.html.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/views/login.html.php b/modules/gallery/views/login.html.php
index 049ba043..fa6308ae 100644
--- a/modules/gallery/views/login.html.php
+++ b/modules/gallery/views/login.html.php
@@ -10,7 +10,7 @@
<li class="first">
<?= t('Logged in as %name', array('name' => html::mark_clean(
'<a href="' . url::site("form/edit/users/{$user->id}") .
- '" title="' . t("Edit Your Profile")->for_html_attr() .
+ '" title="' . ($writable ? t("Edit Your Profile")->for_html_attr() : t("Display Your Profile")->for_html_attr()) .
'" id="g-user-profile-link" class="g-dialog-link">' .
html::clean($user->display_name()) . '</a>'))) ?>
</li>