I need to create sort of company profiles for my page. The companies could login with their account and would have access to editing only their company page.
First I need to find out how to restrict certain roles to being able to edit only a certain page. Then I was thinking if I'm able to do this, I could make their logins same as the names of the pages, and therefore the edit_page function could check if the logged_in_user is the same as the name of the page he is trying to edit. Does anybody know how to do this? Thanks!