Add permission checking in managemenu