Tidied up code

git-svn-id: http://svn.code.sf.net/p/mrbs/code/mrbs/branches/this_and_future@2727 25f7e783-145e-4f2d-a9f8-dd7182bfe9c7
Changed so that the Edit and Delete buttons are only shown if you are allowed to use them.

git-svn-id: http://svn.code.sf.net/p/mrbs/code/mrbs/branches/this_and_future@2728 25f7e783-145e-4f2d-a9f8-dd7182bfe9c7