I recall Adam explaining this in the XML Prague Pre-Conference.


On Thu, Mar 20, 2014 at 7:29 AM, Dmitriy Shabanov
<notifications@github.com>wrote:

> In src/org/exist/backup/xquery/ListBackups.java:
>
> > @@ -69,6 +69,10 @@ public ListBackups( XQueryContext context )
> >
> >      public Sequence eval( Sequence[] args, Sequence contextSequence ) throws XPathException
> >      {
> > +        if(!context.getEffectiveUser().hasDbaRole()) {
>
> My believe, thing over complicated here ... why we have getEffectiveUser &
> getRealUser? what kind of security is it? There was getSubject for a long
> time, why we can't use it?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/eXist-db/exist/pull/173/files#r10790847>
> .
>