Ticket #439 (closed defect: duplicate)

Opened 4 years ago

Last modified 4 years ago

Projects submitted through the widget are LIVE

Reported by: ed Owned by: ed
Priority: blocker Milestone: PSE
Component: Drupal modules & settings Keywords:
Cc: Estimated Number of Hours: 0.0
Add Hours to Ticket: 0 Billable?: yes
Total Hours: 0

Description

Most definitely - tried three times, checked three times, they are coming out as LIVE and published. Should be LIVE but not published - like 'resources'. I have unpublished them... here's one from today:
https://www.transitionnetwork.org/projects/widget-test-project

Change History

comment:1 Changed 4 years ago by jim

  • Priority changed from critical to major

They ARE published, but NOT accessible to anyone without 'widget admin', 'editor' or 'admin' roles.

Log out and go here: https://www.transitionnetwork.org/projects/widget-test-project -- you can't get to it.

If you see it popping up in a place visible by normal users, please let me know.

comment:2 Changed 4 years ago by jim

  • Owner changed from jim to ed
  • Status changed from new to assigned

And they can't be LIVE and unpublished, because otherwise non-admins won't be able to moderate them because Drupal's 'not published' logic will stop them editing content that's not their own... Hence the solution we have.

Let me know...

comment:3 Changed 4 years ago by ed

I promise you. I tested this every time I added three projects today. They *all* come out LIVE and viewable immediately. The projects I have added, I checked and then unpublished as admin. Swear to god. On my cats' nuts. They are live and viewable.

comment:4 Changed 4 years ago by ed

viewable to anyone, that is. Logged in, out, registered or not.

comment:5 Changed 4 years ago by jim

  • Priority changed from major to critical

Aha.. You unpublished them again! Duh, didn't spot that..

Will test and fix, this part was working at one part :-(

Sorry.

comment:6 Changed 4 years ago by jim

  • Priority changed from critical to blocker

OK so this is a big deal, and it's also indicative of (with hindsight) a poor design choice: namely submitting full fat project nodes, rather than a slim intermediary.

So I'll look into Drupal access options -- and there are a bunch -- and get the correct thing happening here.

If I can't I'll make a new content type and port some of my code over -- luckily it's not too much extra work but I'd rather avoid it if possible.

Ahhh... Dunno what I was thinking back in the summer... It's all fixable though.

More tomorrow...

comment:7 Changed 4 years ago by jim

  • Status changed from assigned to closed
  • Resolution set to duplicate

Will be fixed by #445, closing.

Note: See TracTickets for help on using tickets.