mirror of
https://github.com/documize/community.git
synced 2025-07-21 06:09:42 +02:00
Add spacing to attachments view
This commit is contained in:
parent
03be1ce904
commit
29534273b8
3 changed files with 683 additions and 675 deletions
|
@ -25,13 +25,19 @@ export default Component.extend(Notifier, {
|
|||
let constants = this.get('constants');
|
||||
let permissions = this.get('permissions');
|
||||
|
||||
if (permissions.get('documentEdit') && this.get('document.protection') !== constants.ProtectionType.None) {
|
||||
return false;
|
||||
} else if (permissions.get('documentApprove') && this.get('document.protection') === constants.ProtectionType.Review) {
|
||||
return false;
|
||||
if (!permissions.get('documentEdit')) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return true;
|
||||
if (!permissions.get('documentApprove') && this.get('document.protection') === constants.ProtectionType.Review) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (this.get('document.protection') === constants.ProtectionType.Lock) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}),
|
||||
|
||||
keyUp(e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue