1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-02-07 01:54:16 +01:00

Only add your own contacts to groups.

This commit is contained in:
Thomas Tanghus 2013-05-22 05:28:47 +02:00
parent ce4088f7ff
commit ec7b45129e

View File

@ -1071,7 +1071,7 @@ OC.Contacts = OC.Contacts || {};
return false; return false;
}); });
if(this.hasPermission(OC.PERMISSION_UPDATE)) { if(this.getOwner() === OC.currentUser) {
this.$groupSelect = this.$fullelem.find('#contactgroups'); this.$groupSelect = this.$fullelem.find('#contactgroups');
buildGroupSelect(groupprops.groups); buildGroupSelect(groupprops.groups);
} }