# Disabling access for non-administrators

## Description

PDF Converter is installed on a server from where the PDF toolbar icon installation emails are distributed to end-users. Once a user starts converting documents using the toolbar icon, a PDF Converter database bookmark is added to their Notes workspace. SInce all end-users need to have a minimum of a Editor access privilege on the PDF Converter database, they therefore also have the ability to access the server installation of PDF Converter (using the bookmark) and to send out installation emails on their own.

## Solution

The PDF Converter database has no security model set but customers can freely modify it in a way which provides for their specific needs. In order to block non-administrators from sending the PDF toolbar icon installation emails to other users you need to perform an access check in the PDF Converter database. Open the database in Domino Designer and edit the QueryOpen event of the .ToolbarDistribution form as follows:

```
Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
 Dim s As New NotesSession
 If s.CurrentDatabase.QueryAccess<5 Then
  Msgbox "You are not allowed to access this part of application. Only designers and managers can acess this part of SWING PDF Converter"
  Continue=False
  Exit Sub
 End If
 
 Continue=True
End Sub
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.swingsoftware.com/pdf-converter-for-notes/tips-miscellaneous/disabling-access-for-non-administrators.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
