Skip to content

Commit

Permalink
Port pkp/healthSciences#244 to Pragma
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Dec 11, 2024
1 parent 9f40c24 commit d4d79f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/frontend/components/editLink.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* @uses SectionTitleKey string A key that must be translated to get the
* $sectionTitle
*}
{if in_array(ROLE_ID_MANAGER, (array) $userRoles)}
{if in_array(\PKP\security\Role::ROLE_ID_MANAGER, (array) $userRoles)}

{* Render the $sectionTitle if we only have a translation key *}
{if $sectionTitleKey}
Expand Down
2 changes: 1 addition & 1 deletion templates/frontend/pages/userRegisterComplete.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
{translate key="user.login.registrationComplete.instructions"}
</p>
<ul>
{if array_intersect(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR, ROLE_ID_ASSISTANT, ROLE_ID_REVIEWER), (array)$userRoles)}
{if array_intersect(array(\PKP\security\Role::ROLE_ID_MANAGER, \PKP\security\Role::ROLE_ID_SUB_EDITOR, \PKP\security\Role::ROLE_ID_ASSISTANT, \PKP\security\Role::ROLE_ID_REVIEWER), (array)$userRoles)}
<li>
<a href="{url page="submissions"}">
{translate key="user.login.registrationComplete.manageSubmissions"}
Expand Down

0 comments on commit d4d79f5

Please sign in to comment.