Added permission support to Leave cmd