Commit f7de56cc authored by Kjartan's avatar Kjartan

- Added access checking to submit link.

  Details: http://www.drupal.org/node.php?id=7
parent 5579113b
......@@ -307,7 +307,9 @@ function field_merge($a, $b) {
function link_page() {
$links[] = "<a href=\"index.php\">". t("home") ."</a>";
$links[] = "<a href=\"submit.php\">". t("submit") ."</a>";
if (user_access("post content")) {
$links[] = "<a href=\"submit.php\">". t("submit") ."</a>";
}
$links[] = "<a href=\"account.php\">". t("account") ."</a>";
foreach (module_list() as $name) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment