| @@ 105-108 (lines=4) @@ | ||
| 102 | if ($storytopic) { |
|
| 103 | $groups = is_object($xoopsUser) ? $xoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS; |
|
| 104 | $gperm_handler =& xoops_gethandler('groupperm'); |
|
| 105 | if (!$gperm_handler->checkRight('news_view', $storytopic, $groups, $xoopsModule->getVar('mid'))) { |
|
| 106 | redirect_header(XOOPS_URL . '/modules/news/index.php', 3, _NOPERM); |
|
| 107 | ||
| 108 | } |
|
| 109 | $xoopsOption['storytopic'] = $storytopic; |
|
| 110 | } else { |
|
| 111 | $xoopsOption['storytopic'] = 0; |
|
| @@ 62-65 (lines=4) @@ | ||
| 59 | $perm_itemid = 0; |
|
| 60 | } |
|
| 61 | //If no access |
|
| 62 | if (!$gperm_handler->checkRight('news_submit', $perm_itemid, $groups, $module_id)) { |
|
| 63 | redirect_header(XOOPS_URL . '/modules/news/index.php', 3, _NOPERM); |
|
| 64 | ||
| 65 | } |
|
| 66 | $op = 'form'; |
|
| 67 | ||
| 68 | //If approve privileges |
|
| @@ 144-147 (lines=4) @@ | ||
| 141 | //$storyid=(int)($_POST['storyid']); |
|
| 142 | //} |
|
| 143 | $story = new NewsStory($storyid); |
|
| 144 | if (!$gperm_handler->checkRight('news_view', $story->topicid(), $groups, $module_id)) { |
|
| 145 | redirect_header(XOOPS_URL . '/modules/news/index.php', 0, _NOPERM); |
|
| 146 | ||
| 147 | } |
|
| 148 | echo "<table width='100%' border='0' cellspacing='1' class='outer'><tr><td class=\"odd\">"; |
|
| 149 | echo '<h4>' . _AM_EDITARTICLE . '</h4>'; |
|
| 150 | $title = $story->title('Edit'); |
|