- Ruthsarian :
- Layouts :
- Labs :
- Blog :
- Contact :
August 08, 2005
mt-perm-fix.cgi
This is a script I hacked together this morning that presents a form with two drop-down lists. One list showing all available authors in your MT system, the other is a list of all the blogs on your MT system.
The purpose of this script is to set full-control permissions for a given author on a given blog.
The reason I wrote this is because someone lost the rights to their blog and there was no obvious way to set them back. There is no superadmin account with MT, just a flag that tells MT whether or not a given account is allowed to create blogs on the system.
I thought this might come in handy for you fellow MT users out there who are on 2.661.
I do not run MT 3 (due to license changes) so if you're on MT 3 or later, this probably won't work.
Now there could be some way to do this through the normal MT interface. I didn't get a lot of sleep last night so I may have missed something obvious. But, if nothing else, this was a fun little exercise to get wet with the MT API.
Especially useful was this MT API reference I found via Google.
If any MT guys out there know of the "correct" way to set permissions on a blog with no authors applied to it, please let me know. I'm dying to find out what the real way to do this is.
Post a comment