This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Allow deletion/cancellation of inventory requests #334
Labels
Comments
tangollama
added
the
help wanted
indicates that an issue is open for contributions
label
Mar 14, 2017
Hi @tangollama, @jkleinsc, |
go for it @StiveK! |
jkleinsc
added
in progress
indicates that issue/pull request is currently being worked on
and removed
help wanted
indicates that an issue is open for contributions
labels
Apr 10, 2017
@jkleinsc Few questions regarding this feature.
|
The rights to execute an action are governed by permissions / capabilities,
which are mapped to roles by default but can be modified in the admin
interface. So what you're looking for is the following:
- users with the right to add_inventory_request should be able to delete
their own request.
- users with the right to fulfill_inventory should be able to delete any
inventory request.
You can find the list of permissions in this mixin:
https://github.com/HospitalRun/hospitalrun-frontend/blob/master/app/mixins/user-session.js
I hope that helps.
…On Sun, Apr 23, 2017 at 3:28 AM, Stoyan Ekupov ***@***.***> wrote:
@jkleinsc <https://github.com/jkleinsc> Few questions regarding this
feature.
- Do we need permissions for deleting an inventory request? If yes,
which user roles will have such permissions?
- Are there any other conditions that will control who can delete a
request, e.g. a requester can delete his/her own requests regardless of
his/her roles?
- Anything else to be considered when building this feature?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#334 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA4t7XHBBCyijQk80AESWi0fq6-p4-MJks5ryv2AgaJpZM4Hq-M7>
.
--
*Joel Worrall *
@tangollama <http://twitter.com/tangollama> (c) 717.385.9970
|
That same mixin has a helper function, currentUserCan to figure that out for you. |
This was referenced Apr 29, 2017
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Right now there is no way to delete/deny/cancel an inventory request.
The text was updated successfully, but these errors were encountered: