Skip to content

Commit

Permalink
Update submit.php
Browse files Browse the repository at this point in the history
typo?
  • Loading branch information
P2Tera committed Aug 26, 2019
1 parent 8e2c2e6 commit 941fe46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public_html/submit.php
Expand Up @@ -429,8 +429,8 @@ function savesubmission($type, $A)
}
} else {
if ((strlen($type) > 0) && ($type !== 'story')) {
if (SEC_hasRights("$type.edit") ||
SEC_hasRights("$type.admin")) {
if (SEC_hasRights('type.edit') ||
SEC_hasRights('type.admin')) {
COM_redirect($_CONF['site_admin_url'] . "/plugins/$type/index.php?mode=edit");
}
} elseif (SEC_hasRights('story.edit')) {
Expand Down

0 comments on commit 941fe46

Please sign in to comment.