Update: I have resolved this issue by loading the module with the desired access permissions. Everything is working as expected now.
Problem is solved. Thanks