Thank you Davo. I was able to resolve the issue by adding require_capability('local/interview:view', context_system::instance()); to the top of the scripts page. And also as you pointed out I have removed has_capability() in the settings.php.
Thank You very much.
Thank You very much.