From 382f24bea9d6705cfecec8d13fc67943fceace51 Mon Sep 17 00:00:00 2001
From: Alec Smecher
Date: Wed, 11 Dec 2024 11:48:25 -0800
Subject: [PATCH] Port https://github.com/pkp/healthSciences/issues/244 to
Pragma
---
templates/frontend/components/editLink.tpl | 2 +-
templates/frontend/pages/userRegisterComplete.tpl | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/templates/frontend/components/editLink.tpl b/templates/frontend/components/editLink.tpl
index 2f14720..d67a27a 100755
--- a/templates/frontend/components/editLink.tpl
+++ b/templates/frontend/components/editLink.tpl
@@ -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}
diff --git a/templates/frontend/pages/userRegisterComplete.tpl b/templates/frontend/pages/userRegisterComplete.tpl
index 2107fc5..52a8ae1 100644
--- a/templates/frontend/pages/userRegisterComplete.tpl
+++ b/templates/frontend/pages/userRegisterComplete.tpl
@@ -22,7 +22,7 @@
{translate key="user.login.registrationComplete.instructions"}
- {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)}
-
{translate key="user.login.registrationComplete.manageSubmissions"}