Revisión | b9c36a7889ae9d858e6150aa0c0a9aeb04719ae2 (tree) |
---|---|
Tiempo | 2007-07-28 22:56:44 |
Autor | henoheno <henoheno> |
Commiter | henoheno |
BugTrack2/255: Keep it $cantedit
@@ -1,6 +1,6 @@ | ||
1 | 1 | <?php |
2 | 2 | // PukiWiki - Yet another WikiWikiWeb clone. |
3 | -// $Id: freeze.inc.php,v 1.9 2004/12/16 13:32:19 henoheno Exp $ | |
3 | +// $Id: freeze.inc.php,v 1.10 2007/07/28 13:56:44 henoheno Exp $ | |
4 | 4 | // |
5 | 5 | // Freeze(Lock) plugin |
6 | 6 |
@@ -14,7 +14,7 @@ function plugin_freeze_action() | ||
14 | 14 | global $_msg_invalidpass, $_msg_freezing, $_btn_freeze; |
15 | 15 | |
16 | 16 | $page = isset($vars['page']) ? $vars['page'] : ''; |
17 | - if (! $function_freeze || ! is_page($page)) | |
17 | + if (! $function_freeze || is_cantedit($page) || ! is_page($page)) | |
18 | 18 | return array('msg' => '', 'body' => ''); |
19 | 19 | |
20 | 20 | $pass = isset($vars['pass']) ? $vars['pass'] : NULL; |
@@ -1,6 +1,6 @@ | ||
1 | 1 | <?php |
2 | 2 | // PukiWiki - Yet another WikiWikiWeb clone. |
3 | -// $Id: unfreeze.inc.php,v 1.11 2007/01/21 14:27:08 henoheno Exp $ | |
3 | +// $Id: unfreeze.inc.php,v 1.12 2007/07/28 13:56:44 henoheno Exp $ | |
4 | 4 | // Copyright (C) 2003-2004 PukiWiki Developers Team |
5 | 5 | // License: GPL v2 or (at your option) any later version |
6 | 6 | // |
@@ -16,7 +16,7 @@ function plugin_unfreeze_action() | ||
16 | 16 | global $_msg_invalidpass, $_msg_unfreezing, $_btn_unfreeze; |
17 | 17 | |
18 | 18 | $page = isset($vars['page']) ? $vars['page'] : ''; |
19 | - if (! $function_freeze || ! is_page($page)) | |
19 | + if (! $function_freeze || is_cantedit($page) || ! is_page($page)) | |
20 | 20 | return array('msg' => '', 'body' => ''); |
21 | 21 | |
22 | 22 | $pass = isset($vars['pass']) ? $vars['pass'] : NULL; |