rename var
remove attachment icon refs #170.
declare var to avoid E_NOTICE
Filter forums by permissions. Apply parent permissions to children. slightly modify permission rule (should be BC) refs #155, #169