Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C775A200D23 for ; Thu, 19 Oct 2017 16:24:43 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C5F9A1609ED; Thu, 19 Oct 2017 14:24:43 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 142631609E2 for ; Thu, 19 Oct 2017 16:24:42 +0200 (CEST) Received: (qmail 84711 invoked by uid 500); 19 Oct 2017 14:24:42 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 84698 invoked by uid 99); 19 Oct 2017 14:24:42 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Oct 2017 14:24:42 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 7A718C3427 for ; Thu, 19 Oct 2017 14:24:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.272 X-Spam-Level: X-Spam-Status: No, score=0.272 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_LOW=-0.7, SPF_SOFTFAIL=0.972] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 8Q2neBCwRMUR for ; Thu, 19 Oct 2017 14:24:40 +0000 (UTC) Received: from plasma6.jpberlin.de (plasma6.jpberlin.de [80.241.56.68]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 405C55F3DE for ; Thu, 19 Oct 2017 14:24:40 +0000 (UTC) Received: from spamfilter02.heinlein-hosting.de (spamfilter02.heinlein-hosting.de [80.241.56.116]) by plasma.jpberlin.de (Postfix) with ESMTP id F23E3B50E8; Thu, 19 Oct 2017 16:24:32 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from plasma.jpberlin.de ([80.241.56.68]) by spamfilter02.heinlein-hosting.de (spamfilter02.heinlein-hosting.de [80.241.56.116]) (amavisd-new, port 10030) with ESMTP id vpXRKGgABjzG; Thu, 19 Oct 2017 16:24:31 +0200 (CEST) Received: from webmail.jpberlin.de (sinatra11.heinlein-hosting.de [80.241.56.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: fmui-mailbox@gotux.de) by plasma.jpberlin.de (Postfix) with ESMTPSA id 2BBB6B50CA; Thu, 19 Oct 2017 16:24:31 +0200 (CEST) Received: from 0X+X9Lpdnxbt0sKuzkdpgklKBeT6gBCX by webmail.jpberlin.de with HTTP (HTTP/1.1 POST); Thu, 19 Oct 2017 16:24:30 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 19 Oct 2017 16:24:30 +0200 From: =?UTF-8?Q?Florian_M=C3=BCller?= To: dev@chemistry.apache.org Cc: krzysztoffzielinski@gmail.com Subject: Re: Checking user access control In-Reply-To: References: Message-ID: X-Sender: fmui@apache.org User-Agent: RoundCube Webmail archived-at: Thu, 19 Oct 2017 14:24:44 -0000 Hi, The allowable actions are the best way to check the permissions. The hasAllowableAction() method has been added more than 3 years ago. Which OpenCMIS version are you using? You should definitely update! - Florian > Hello All > > Whats the best way to check user's access to documents using cmis > library? > > I can see getAllowableActions() and getAcls() methods on the document, > and documentation shows hasAllowableAction(Action.CAN_DELETE_OBJECT), > but i cant see the method on the cmsobject. > > unfortunately, i can rely on alfresco security model as we > authenticate with one user id only. > > I will appreciate any suggestions. > > Regards > Krzysztof