Managing Permissions

admin


Typemill provides a versatile permission system designed to accommodate a range of use cases. If you're publishing ebooks or websites and wish to restrict access, there are several options at your disposal.

Permissions for Authors

First and foremost, managing permissions for your authors is crucial. As discussed in the chapter on adding authors, it’s important to limit an author’s access to their specific project, allowing them to view and edit content only within that scope. This can be accomplished through the folder restriction field found in each author's account settings.

Assign the "editor" role to your authors to grant them full editing privileges for their project’s content. If you have multiple authors contributing to specific pages, consider assigning them the "author" role. This enables them to read all pages while restricting edits to those where they are designated as "author" in the page's meta-tab.

Restrict the Full Website

You can configure the entire website to be accessible exclusively to authenticated users. In this setup, any user who is not logged in will be automatically redirected to the login page. This approach is particularly beneficial if you are using Typemill internally within your organization to create various guides for different teams. In this context, Typemill serves as an internal knowledge base with multiple publishing formats, ideal for onboarding guides, team-specific instructions, or specialized topics such as a "Fundraising Guide" intended solely for your fundraising team.

Screenshot of the options to restrict access to pages and the website with Typemill

Restrict Access to Single Pages

Alternatively, you can limit access to individual pages rather than the entire website. To do this, activate the page restriction option in the access tab of the system settings. You can choose to either completely hide the restricted page from the frontend or display the beginning of the page while manually truncating the content using three dashes '---' within the page content. Additionally, you can enable a restriction notice that links to the login page.

When page restrictions are activated, a new option appears in the meta-tab of each page. Here, you can select one or more usernames or specify a minimum role required to access the complete page content.

Screenshot of an individual page restriction in the meta-tab of a page

Restricting access to individual pages is a prudent strategy if you wish to preview certain content and require users to log in for full details, similar to how newspapers operate. In the context of ebooks, you might opt to make some pages publicly accessible while restricting others or offering them as teasers. For additional insights into page restrictions, refer to the author documentation.

Restrict Access for Individual Files

If you are offering your ebook as a downloadable PDF, you may want to limit access to the download to registered users only. Typemill allows you to implement this easily in the file component. Similar to the page itself, you can select a required role for each file that must be met for download.

Screenshot of the access options in the file component

This approach ensures that users must register before they can download your ebooks. If you require more options, consider utilizing the ebookproducts plugin.