| @@ 102-105 (lines=4) @@ | ||
| 99 | if ($storytopic) { |
|
| 100 | $groups = is_object($xoopsUser) ? $xoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS; |
|
| 101 | $gpermHandler = xoops_getHandler('groupperm'); |
|
| 102 | if (!$gpermHandler->checkRight('news_view', $storytopic, $groups, $xoopsModule->getVar('mid'))) { |
|
| 103 | redirect_header(XOOPS_URL . '/modules/news/index.php', 3, _NOPERM); |
|
| 104 | } |
|
| 105 | $xoopsOption['storytopic'] = $storytopic; |
|
| 106 | } else { |
|
| 107 | $xoopsOption['storytopic'] = 0; |
|
| 108 | } |
|
| @@ 54-57 (lines=4) @@ | ||
| 51 | $perm_itemid = 0; |
|
| 52 | } |
|
| 53 | //If no access |
|
| 54 | if (!$gpermHandler->checkRight('news_submit', $perm_itemid, $groups, $module_id)) { |
|
| 55 | redirect_header(XOOPS_URL . '/modules/news/index.php', 3, _NOPERM); |
|
| 56 | } |
|
| 57 | $op = 'form'; |
|
| 58 | ||
| 59 | //If approve privileges |
|
| 60 | $approveprivilege = 0; |
|
| @@ 134-137 (lines=4) @@ | ||
| 131 | //$storyid=(int)($_POST['storyid']); |
|
| 132 | //} |
|
| 133 | $story = new NewsStory($storyid); |
|
| 134 | if (!$gpermHandler->checkRight('news_view', $story->topicid(), $groups, $module_id)) { |
|
| 135 | redirect_header(XOOPS_URL . '/modules/news/index.php', 0, _NOPERM); |
|
| 136 | } |
|
| 137 | echo "<table width='100%' border='0' cellspacing='1' class='outer'><tr><td class=\"odd\">"; |
|
| 138 | echo '<h4>' . _AM_EDITARTICLE . '</h4>'; |
|
| 139 | $title = $story->title('Edit'); |
|
| 140 | $subtitle = $story->subtitle('Edit'); |
|