I believe that's the message that you get when you call the php function print_no_permission(); But you can't call it directly from javascript, and there is no php script that will simply call that function (although there are probably a number of them that would display that if the user was logged out). I suppose you could write one, or use a plugin in misc.php, but to be honest I'm having trouble seeing what would happen after that message was displayed (the user would log in obviously, but then where would it take you?).
|