Good code?

Hi,

Is this ok as helper code?
http://pastie.caboo.se/58054

I especially was wondering if it is ok to use the "current_user"
method in a helper method?

Anyone has got any thoughts about it?