When adding new pages they are public by default. Is it possible to make them private by default?
That solved it. Thank you!
@Mudmin - I'd like to deploy this as an option on admin_pages.php - thoughts?
Yeah. We had that before. I think that's the way to go. My thought is to put it in the securePage function so the first time ANYONE notices the page, it becomes private...this way you never have to even visit the admin_pages thing to fire off that query.
So offer an option, from the settings table, and whatever the value is in this settings table is the value we use in the securePage function? (1 = private, 0 = public - we can copy this for the setting)
Yeah. That's a great idea. And then it will be a both/and thing, where that will fire off whether it is hit from the securePage function or the admin_pages.
I will deploy this when we get Status 15 pushed.
OK! I remember the discussion on this...
The annoyance is there on purpose. I think it makes a ton of sense to just mark a page private by default (although I would be down with the option in the admin panel).
But, I took the private page when securePage hit the page the first time, because I kept forgetting to go into the admin panel and set permissions on pages because they were all admin only by default.
I probably didn't explain that properly. There isn't a technical reason why someone needs to go into admin_pages to add a page. The reason that message is there is to force the developer to think through permissions a page at a time when they create them. Although, it definitely happens where I add a permission level so I forget to click the private button.
I went ahead and made it 1 by default and then you can feel free to add it as an option to the admin panel. I'll push soon.
1 by default is fine with me - because truly who wants a page they're developing public by default??
However - you run into issues of when you are pushing new pages during maintenance. I think a developer option for this should be put into place - just for this reason: we try to give US developers as many options as possible, with as little confusion, so if the option is there, they don't have run the query themselves, or change the DB themselves type stuff.