You Don't have Permission to Perform this action

When Checking a file back in after checking it out sometimes this happens. and won’t let user check a file back in even though they have privileges.

If the user doesn’t have “edit version free variable data” and you have version free variables that are edited even if they are checked out can cause this.