Fixed a bug for not permitted in layer_detail