':param user: model object representing user.
:type user: galaxy.model.User
:param attempting_access: is the user attempting to do something with the
the tool (set false for incidental checks like toolbox
listing)
:type attempting_access:  bool
:returns: bool -- Whether the user is allowed to access the tool.
Data Manager tools are only accessible to admins.'

def allow_user_access(self, user, attempting_access=True):

    if (super(DataManagerTool, self).allow_user_access(user) and self.app.config.is_admin_user(user)):
        return True
    if attempting_access:
        if user:
            user = user.id
        log.debug('User    (%s)    attempted    to    access    a    data    manager    tool    (%s),    but    is    not    an    admin.', user, self.id)
    return False
