Fixed table bbcode issue
Fixed upload permission check