Open ImranBinShoukat opened 4 years ago
@ImranBinShoukat I thought we already have that? Is this an audit? I remember @arveenkumar55 testing this?
We should also disable from UI. There is no point in showing Agent a function and then not allowing it.
We have disabled the actions from the UI but that is not table driven. We have made the checks on client side and if we change any permission in the table then it won't affect our UI. In this task, I will make it table driven. So our UI will get the permissions from server and then check if the user is allowed to perform the action. That way if some permission gets changes in the table then it will be affected on client side as well
Work on this task has been completed. Assigning @AnishaChhatwani to test this
Tested locally
Tested on staging
In this task, we will modify client side code to allow actions as per user permissions. If user is not permitted to perform such action then we will not show him that action.