Skip to content

Commit

Permalink
Merge pull request #960 from P2Tera/patch-2
Browse files Browse the repository at this point in the history
Update submit.php
  • Loading branch information
mystralkk committed Aug 26, 2019
2 parents 8e2c2e6 + 941fe46 commit f177a82
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 f177a82

Please sign in to comment.