阅读背景:

基于角色的验证不在环回中工作

来源:互联网 

I have two roles and want to apply different data validation rules on the incoming post request based on a role field in the incoming data ie. if posted role is of admin then validate whether input has name field and if role is user, validate if input has age. I wrote validation code in beforeRemote hook of create method like:I have two roles and want to apply different da




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: