Fixed document/show permissions by showing/hiding management links