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:
parent
818ddc1d13
commit
c7ccfb9b4a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user