added permission script to composer hook