Disabling the "unpublish" option

chriscas
Community Coach
Community Coach

Hi Developers,

The July 17 deploy changed the UI for the publish/unpublish options on a course home page and in course settings to a dropdown box.  I'm looking for a way to disable the "unpublish" option with this new UI.  I had code working for the old UI, but I'm having trouble figuring out how to do this with the new one.  We want teachers to be able to publish (so we can't lock this out with permissions), but we don't want them to be able to unpublish a course that's already been published.  Do any of you experts in here see a way to accomplish this with the new/current UI?  I'd appreciate any assistance I can get!

-Chris

Users who also had this question