Skip to content

New To Rails, and Trestle - how to restrict access to a view to admin users #21

@VinylVault

Description

@VinylVault

Hi All,

Please forgive what is probably a n00bs question, being raised as an issue, but I can't find the info I seek by googling or reading through the docs.

I want to limit the access to a particular page to admin users only. The script is to import data - naturally general visitors I dont want to be able to do this (although strictly speaking there will be no issue if they did apart from if many tried, it would become a DDOS - long running script)

I have trestle-auth installed and working - and have created the MVC for the import

Hope I've given enough info for help, if not, let me know and i will add more

Thanks for Help
Rich

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions