Question

I am using Windows Authentication for Roadkill Wiki. Has anyone attempted to add additional user roles in Roadkill Wiki for fine grain access control? If so, do you have any guides to help with this.

Cheers.

Was it helpful?

Solution

I'm pretty sure that you can't add additional user roles in Roadkill Wiki. You can find proof of this fact in documentation:

Roadkill has just two types of user roles: editors (or standard users) and admins. The only difference between the two is that admin users who belong to the admin role can access the "site settings" page, delete and lock pages.

Also you can find authentication implementation details in code:

public interface IUserContext
{
    // ...

    /// <summary>
    /// Gets whether the user (if logged in), is in the editors group.
    /// </summary>
    bool IsAdmin { get; }

    /// <summary>
    /// Gets whether the user (if logged in), is in the editors group.
    /// </summary>
    bool IsEditor { get; }

    // ...
}

You can see that there is no UserRole type. Just two flags: IsAdmin and IsEditor. Not very flexible :) Of course, you can create an issue or pull request.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top