#2147 added permission check on contents