Fix group permission support for apps