Fix Publish Layer button on layer detail
Fix Publish Layer button on layer detail

Show button only if user has appropriate permission, and remove the
duplicate button at the end of the page as it's unlikely to be useful.

Signed-off-by: Paul Eggleton <737d4dae46a541673d7bf4e0d5b32714b16528d8@linux.intel.com>

bartosh/layerindex-web,bartosh/layerindex-web,bartosh/layerindex-web