Forms save permissions
Factored out setPermissionsFromInput