I have data like: {"emolument":20000, "partment":"Financial", "ACL":
{"jack":"rw","david":"r"} }
Now when user request api with "DELETE" or "PUT" (with useranme like.
jack, david....), I will check permission with username in ACL.
But how to do it would be more convenient to perform this check by default,
like. if ACL.username in [rw, w] to do next else stop request and raise
exception
Am Sonntag, 26. Januar 2014 05:39:59 UTC+1 schrieb David shi:
Hi guys:
I have data like: {"emolument":20000, "partment":"Financial", "ACL":
{"jack":"rw","david":"r"} }
Now when user request api with "DELETE" or "PUT" (with useranme like.
jack, david....), I will check permission with username in ACL.
But how to do it would be more convenient to perform this check by
default, like. if ACL.username in [rw, w] to do next else stop request
and raise exception
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.