Fix warnings with feed permissions view

Was throwing a lot of warnings.  Also cleans up the code a little.