Check if user can commit

Open Jacob Schatz requested to merge fork-or-branch-permissions into master

What does this MR do?

Checks for permissions before editing a file in the repo editor and leading user to a fork situation.

Are there points in the code the reviewer needs to double check?

Why was this MR needed?

Screenshots (if relevant)


Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Fixes: #38357

Edited by Jacob Schatz