1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-18 07:52:21 +01:00

Small readability fix

This commit is contained in:
Thomas Tanghus 2014-05-09 11:29:21 +02:00
parent 3806f0236b
commit f9aa396d01

View File

@ -1058,9 +1058,10 @@ OC.Contacts = OC.Contacts || {};
categories: this.getPreferredValue('CATEGORIES', [])
.clean('').join(' / ')
});
if(this.getOwner() !== OC.currentUser
&& !(this.metadata.permissions & OC.PERMISSION_UPDATE
|| this.metadata.permissions & OC.PERMISSION_DELETE)) {
if (this.getOwner() !== OC.currentUser
&& !(this.metadata.permissions & OC.PERMISSION_UPDATE
|| this.metadata.permissions & OC.PERMISSION_DELETE)
) {
this.$listelem.find('input:checkbox').prop('disabled', true).css('opacity', '0');
} else {
var self = this;