From ec7b45129e95f3acba5df5b7601dbdfc1dd17d59 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Wed, 22 May 2013 05:28:47 +0200 Subject: [PATCH] Only add your own contacts to groups. --- js/contacts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/contacts.js b/js/contacts.js index ecdeb6ff..0ac6379a 100644 --- a/js/contacts.js +++ b/js/contacts.js @@ -1071,7 +1071,7 @@ OC.Contacts = OC.Contacts || {}; return false; }); - if(this.hasPermission(OC.PERMISSION_UPDATE)) { + if(this.getOwner() === OC.currentUser) { this.$groupSelect = this.$fullelem.find('#contactgroups'); buildGroupSelect(groupprops.groups); }