From 03d0311618267cf0b16445161c4d275749d64a5e Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Wed, 7 Oct 2009 21:40:05 -0700 Subject: 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 --- modules/gallery/views/admin_users.html.php | 36 +++++++++++++++++++----------- 1 file changed, 23 insertions(+), 13 deletions(-) (limited to 'modules/gallery/views/admin_users.html.php') diff --git a/modules/gallery/views/admin_users.html.php b/modules/gallery/views/admin_users.html.php index a127bc15..82d0926c 100644 --- a/modules/gallery/views/admin_users.html.php +++ b/modules/gallery/views/admin_users.html.php @@ -2,7 +2,7 @@
+ " class="g-dialog-link g-button g-right ui-icon-left ui-state-default ui-corner-all" title="for_html_attr() ?>"> +

@@ -65,7 +68,7 @@ $user): ?> user admin ? "admin" : "" ?>"> - + "> " title="for_html_attr() ?>" alt="name) ?>" @@ -86,15 +89,19 @@ id") ?>" open_text="" class="g-panel-link g-button ui-state-default ui-corner-all ui-icon-left"> - - id != $user->id && !$user->guest): ?> - id") ?>" - class="g-dialog-link g-button ui-state-default ui-corner-all ui-icon-left"> - - - for_html_attr() ?>" - class="g-button ui-state-disabled ui-corner-all ui-icon-left"> - + + + + + id != $user->id && !$user->guest): ?> + id") ?>" + class="g-dialog-link g-button ui-state-default ui-corner-all ui-icon-left"> + + + for_html_attr() ?>" + class="g-button ui-state-disabled ui-corner-all ui-icon-left"> + + @@ -104,12 +111,14 @@

+ " class="g-dialog-link g-button g-right ui-icon-left ui-state-default ui-corner-all" title="for_html_attr() ?>"> +

@@ -118,8 +127,9 @@
    $group): ?> -
  • " /> - group = $group; ?> + +
  • " /> + group = $group; $v->writable = !empty($writable) ?>
  • -- cgit v1.2.3