Module framework and permission granting