LPS-44481 Format source

Hey @gallindo 

Can you please review my changes?

I used a different permission checking that I think it makes more sense. Basically, we are displaying the workflow definitions only when the user has permission to update the folder, because that's what the user is intending to do when rendering that jsp, right?

I didn't test the solution, so can you please test it and make sure that everything is working as expected and we I'm not introducing any regression?

Thx!