You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 22, 2020. It is now read-only.
I want to put restriction on uses according to their role to call chaincode functions. For eg. In tunaFish example I do not want the Regulator or Restaurateur to call a function recordTuna. So how do I manage this.
Can we restrict this access in chaincode or do we have to manange this at application side?
The text was updated successfully, but these errors were encountered:
You should handle this in the chaincode. Attribute-based access control can be of help here. You can query the role attribute in your chaincode and put access restriction as required.
I want to put restriction on uses according to their role to call chaincode functions. For eg. In tunaFish example I do not want the Regulator or Restaurateur to call a function
recordTuna
. So how do I manage this.Can we restrict this access in chaincode or do we have to manange this at application side?
The text was updated successfully, but these errors were encountered: