snaphy / snaphyBackend

Snaphy Backend Template for all cloud tech
3 stars 0 forks source link

Add a property for adding a default where statement for each data.find() method. Also add a method for adding role for limit a property edit. #39

Open robinskumar73 opened 8 years ago

robinskumar73 commented 8 years ago

`data.json

onLoad:{ addWhere:{ status: "publish" }, expect:"admin" //name of of Role }, //Role who only can edit this property propertyEditPermission:{ "status": ["admin"] } `