Revert "Update Controller.php"

This reverts commit 800cc8bef9002cf955fe1566ec2633708f85b9ed.
Revert "Reset code indent"

This reverts commit 430dce9d10ae7a0b15af416d4706c082f1f971eb.
Revert "Reset code indent to original"

This reverts commit d5d079d757c9e5108565a051d3c7d5cc067b401c.
Revert "Hook applyAccessRestrictions"

This reverts commit 3bb47f7ace6f47365338eabeeeb5aff83f52999d.