[JENKINS-56934] fix the 'new view' link to correctly work with folders (#5377)
* [JENKINS-56934] fix the 'new view' link to correctly work with folders * [JENKINS-56934] check permission on the correct item * [JENKINS-56934] update and simplify the test * [JENKINS-56934] check the owner is modifiable and refactor * [JENKINS-56934] correct unit test, and add new test for non modifiable owner