[Typo3-dev] Lock the backend?
Mathias Schreiber [wmdb]
mathias.schreiber at wmdb.de
Wed Dec 22 11:33:05 CET 2004
Carsten Bleicker wrote:
> Hi all,
> i've got to disable the backend automaticly during an export of static
> pages
> so that publishers are not able to edit anything. when the export is
> finished
> i have to unlock it again. is there a solution for this problem at this
> time in
> typo3 or does anybody has a hint for me how i should realise it?
>
> i'm thinking about this way:
> creating a new db table named 'lock' with only 1 entry 'true' or 'false'.
> but at the moment i dont know the method wich should allways check this
> new record
> maybe with an additional 'inner join' on the select of authentication.
> but: where is the authentitacion hiding? :P
UPDATE be_users SET disabled = 1 WHERE tx_yourkey_shallbelocked = 1;
DELETE FROM be_sessions WHERE 1;
a rather cruel method, but you lock out every be user from loggin in and
kill their session withi results in throwing them out of the backend
with their next click :)
--
No Subject - No Realname - No Service!
Respect the List/Newsgroup Rules!
>> http://typo3.org/1438.0.html <<
More information about the TYPO3-dev
mailing list