fix ensurePermission to get file path from params[0] or body
fix ensurePermission to get file path from params[0] or body
jokyip/resource,twhtanghk/restfile,jokyip/reservation,twhtanghk/restfile,twhtanghk/restfile,jokyip/resource,jokyip/resource,jokyip/reservation,jokyip/reservation