There is not a good way for you to get into the code without forking it which is not recommended.
Edit link visibility in all mojoportal features is based on role membership in the allowed edit roles of the page or of the feature instance, ie permissions in page settings and feature settings. If a user is not in an allowed edit role the edit links are not shown.