fature spec for testing authorization in the view
implementing authorization in the view with the allow? method
Test and implement the scenario where a user can only edit their own texts
fix indentation problem that caused the test to fail
prevent users with a team from accessing other teams pages
restrict users from seeing teams other than the ones they belong to
restrict users that arent in the team that from accessing the texts index action