1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-12-01 13:24:10 +01:00

Don't look up permissions from list.

This commit is contained in:
Thomas Tanghus 2012-09-09 18:51:22 +02:00
parent 818ddc1d13
commit c7ccfb9b4a

View File

@ -559,7 +559,7 @@ OC.Contacts={
$('#contact_note').hide();
$('#contacts_propertymenu_dropdown a[data-type="NOTE"]').parent().show();
}
var permissions = OC.Contacts.Card.permissions = parseInt($('#contacts ul[data-id="' + bookid + '"]').data('permissions'));
var permissions = OC.Contacts.Card.permissions = parseInt(this.data.permissions);
console.log('permissions', permissions);
this.setEnabled(permissions == 0
|| permissions & OC.PERMISSION_UPDATE