stash
This commit is contained in:
parent
8d96bc97c4
commit
ed04d98bf1
54 changed files with 661 additions and 1214 deletions
|
|
@ -98,16 +98,13 @@ export default {
|
|||
decodedHandle() {
|
||||
return decodeHandleFromUrl(this.handle)
|
||||
},
|
||||
// Edit/Delete apply once the viewer is actually authorized to act on this item - their
|
||||
// own item, or a group they belong to - not just anyone who can view it
|
||||
// (get_shared_item's friends_or_self() also lets a friend view a shared item, but never
|
||||
// act on it).
|
||||
// Edit/Delete require actual authorization (own item or member group), not just view
|
||||
// access - get_shared_item's friends_or_self() lets a friend view but never act.
|
||||
canEdit() {
|
||||
return this.decodedHandle === this.user || this.decodedHandle in this.groupIdByHandle
|
||||
},
|
||||
// Printed labels only support a personal owner handle so far (see label.js's
|
||||
// splitUserHandle/Inventory.vue's printLinkFor) - group items don't get a print link
|
||||
// until that's supported too.
|
||||
// splitUserHandle); group items get no print link until that's supported too.
|
||||
canPrint() {
|
||||
return this.decodedHandle === this.user
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue