Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kay Leister 10 posts 30 karma points
    Jan 19, 2012 @ 14:57
    Kay Leister
    0

    Razor API method getCalendars() returns empty list

    Hi, I want to use the API method getCalendars() to render a list of events from all calendars.

    It only returns an empty list because, as I have discovered with reflection, a user has to be authenticated in back-office to get any data.

    Why is an authentication needed? The other API methods don't need this.

    Umbraco: 4.7.1
    ASP: 4.0
    Windows: Server 2008 R2
    IIS: 7.5

  • Daniel Bardi 927 posts 2562 karma points
    Jul 14, 2012 @ 19:40
    Daniel Bardi
    0

    A licensed version should allow this.

  • Kay Leister 10 posts 30 karma points
    Jul 26, 2012 @ 14:06
    Kay Leister
    0

    I'm using a licensed version. At least on localhost the license should be irrelevant.

    At the top of the Method GetCalendars() there are the following lines of Code:

    if (!UserHelper.IsAuthenticatedUser)
    {
        return new List<uCalendar>();
    }

    This has nothing to do with a license, the code checks the authentication with the umbraco member system.

  • Daniel Bardi 927 posts 2562 karma points
    Jul 28, 2012 @ 10:32
    Daniel Bardi
    0

    You must be logged in to get all the calendars.

  • Kay Leister 10 posts 30 karma points
    Sep 03, 2012 @ 11:33
    Kay Leister
    0

    OK, but why?

    I want to show a little list of upcoming events on my site. This list should be visible and filled for every user visiting my site. That's not possible if users have to log in first. I think that's no function that requires authentication.

    By the way, when will you release the next version?

  • Daniel Bardi 927 posts 2562 karma points
    Sep 15, 2012 @ 01:41
    Daniel Bardi
    0

    This issue has been resolved in the the upcoming smarter, better uCalendar.  It's just around the corner.  I've had more time recently to work out the issues and streamline the code.

    It has a better API which allow what you need.

Please Sign in or register to post replies

Write your reply to:

Draft