Private categories not available when logged in with SSO

Lennart Koopmann's Avatar

Lennart Koopmann

15 Jan, 2013 10:25 PM

I am using SSO and have the private mode enabled. Public forums are disabled. My goal is to have our customers only see their tickets.

The SSO login is working perfectly but when I log in as a customer and try to start a discussion I can't select private categories. Because this user should only (and only he should!) see that discussion all my categories are private. This results in an empty select box now and no tickets can be created.

Did I configure something wrong?

  1. Support Staff 1 Posted by Courtenay on 15 Jan, 2013 10:29 PM

    Courtenay's Avatar

    That doesn't sound right.
    I definitely see a category here:

    http://graylog2.tenderapp.com/help/discussion/new

    Is that the url you're looking at?

  2. 2 Posted by Lennart Koopman... on 15 Jan, 2013 10:36 PM

    Lennart Koopmann's Avatar

    I was playing around with the settings and got it working by setting the category type to "visible". The discussion now actually is not visible by other users, because the overall tender private mode seems to get inbeween - This is now like what I want, but it is a bit confusing. If I set the category to "private" it's not visible again.

    Thanks for your fast reply. :)

  3. 3 Posted by Lennart Koopman... on 15 Jan, 2013 10:52 PM

    Lennart Koopmann's Avatar

    This is also causing confusion when using the widget: The widget has a checkbox for "This is a private discussion, don't let the public see it", even though it is always private. This is not happening when starting a discussion without the widget.

  4. Support Staff 4 Posted by Courtenay on 15 Jan, 2013 10:55 PM

    Courtenay's Avatar

    are you planning on having only one category?

  5. Support Staff 5 Posted by Courtenay on 15 Jan, 2013 10:57 PM

    Courtenay's Avatar

    the logic works like this:

      <% if (@category && @category.private?) || current_site.categories.all_private?(current_user) -%>
        <p class="misc"><label for="discussion_private"><%= f.hidden_field :private, :value => true %> This is a private category; discussions are never public</label></p>
      <% else %>
        <p class="misc" id="private-discussion-opt"><label for="discussion_private"><%= f.check_box :private, :tabindex => 7 %> This is a private discussion, don't let the public see it</label></p>
      <% end %>
    

    so first you have to be not a support user; and second, it will show a checkbox if there are any public categories; you can also send the category hardcoded as part of the widget setup.

  6. Support Staff 6 Posted by Courtenay on 15 Jan, 2013 11:06 PM

    Courtenay's Avatar

    Oh, you turned off forums completely. I'll check that logic path.

  7. 7 Posted by Lennart Koopman... on 15 Jan, 2013 11:08 PM

    Lennart Koopmann's Avatar

    For now only one category, yes.

  8. Support Staff 8 Posted by Courtenay on 15 Jan, 2013 11:16 PM

    Courtenay's Avatar

    OK, found a few bugs in there. I've fixed them and it'll go out in the next deploy (after code review by another dev) -- basically, you shouldn't see the dropdown if there's only one category, and you shouldn't see a checkbox if all categories are private.

  9. 9 Posted by Julien on 16 Jan, 2013 01:20 AM

    Julien's Avatar

    Hi Lennart,

    Should be fixed now.

    Enjoy!

  10. Courtenay closed this discussion on 16 Jan, 2013 02:35 AM.

Discussions are closed to public comments.
If you need help with Tender please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac