Add permissions to execute hook in last of file