summaryrefslogtreecommitdiffstats
path: root/lib/api/kolab_api_service_user.php
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-09-03 12:18:52 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-09-03 12:18:52 +0100
commit6d515f55b9dc0da0ba3d81fa98996603df41e748 (patch)
treedcab97c4183cda02aeeda8c537815f5d5aefdbe6 /lib/api/kolab_api_service_user.php
parent4c3e0eda4e2d108335353a49332a0ba9b9573cab (diff)
downloadwebadmin-6d515f55b9dc0da0ba3d81fa98996603df41e748.tar.gz
Make non-required attributes that do not validate not block submission - drop the attribute value instead
Use correct Auth() function calls (get_attribute() -> get_entry_attribute()) Increase helpful trace statements. List rights on correct subject if no existing object is being edited.
Diffstat (limited to 'lib/api/kolab_api_service_user.php')
-rw-r--r--lib/api/kolab_api_service_user.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/kolab_api_service_user.php b/lib/api/kolab_api_service_user.php
index c0fbee5..37c83af 100644
--- a/lib/api/kolab_api_service_user.php
+++ b/lib/api/kolab_api_service_user.php
@@ -149,7 +149,7 @@ class kolab_api_service_user extends kolab_api_service
public function user_effective_rights($getdata, $postdata)
{
$auth = Auth::get_instance();
- $effective_rights = $auth->list_rights($getdata['user']);
+ $effective_rights = $auth->list_rights(empty($getdata['user']) ? 'user' : $getdata['user']);
return $effective_rights;
}