Skip to content

Commit

Permalink
Fix typos (NOJIRA)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benn Oshrin committed May 11, 2020
1 parent b31b9fd commit 242d43d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/Controller/AttributeMappingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function install() {
public function isAuthorized(Array $user) {
$platformAdmin = $this->Authorization->isPlatformAdmin($user['username']);

$mgAdmin = $this->Authorization->isMatchAdmin($user['username'], $this->mgid);
$mgAdmin = $this->Authorization->isMatchAdmin($user['username'], $this->cur_mg->id);

$p = [
'add' => $platformAdmin || $mgAdmin,
Expand Down
2 changes: 1 addition & 1 deletion app/src/Template/Element/breadcrumbs.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ if($this->request->getRequestTarget(false) != '/') {
// We currently assume the parent of a primary link is matchgrid, which
// might or might not always be true in the future.
$this->Breadcrumbs->add(
__('match.ct.'.\Cake\Utility\Inflector::underscore($vv_primary_link_model), [99]),
__('match.ct.'.$vv_primary_link_model, [99]),
['controller' => \Cake\Utility\Inflector::dasherize($vv_primary_link_model),
'action' => 'index',
'matchgrid_id' => $vv_cur_mg->id]
Expand Down

0 comments on commit 242d43d

Please sign in to comment.