Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed bad model names that prevented unlock overrides SMS and Notifications #3131

Merged
merged 1 commit into from Dec 29, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -517,7 +517,7 @@ public function editAction($objectId, $ignorePost = false, $forceTypeSelection =
return $this->accessDenied();
} elseif ($model->isLocked($entity)) {
//deny access if the entity is locked
return $this->isLocked($postActionVars, $entity, 'email');
return $this->isLocked($postActionVars, $entity, 'notification');
}

//Create the form
Expand Down
2 changes: 1 addition & 1 deletion app/bundles/SmsBundle/Controller/SmsController.php
Expand Up @@ -510,7 +510,7 @@ public function editAction($objectId, $ignorePost = false, $forceTypeSelection =
return $this->accessDenied();
} elseif ($model->isLocked($entity)) {
//deny access if the entity is locked
return $this->isLocked($postActionVars, $entity, 'email');
return $this->isLocked($postActionVars, $entity, 'sms');
}

//Create the form
Expand Down