Skip to content

Commit

Permalink
update for Joomla 4
Browse files Browse the repository at this point in the history
  • Loading branch information
ron4mac committed Oct 18, 2021
1 parent 1dda6ac commit 5ede790
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion language/es-ES/es-ES.plg_user_regauth.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ PLG_USER_REGAUTH_TOOQUICK="Vuelve a intentarlo en 15 segundos."
PLG_USER_REGAUTH_AUTHCODE_LABEL="Código de autorización"
PLG_USER_REGAUTH_AUTHCODE_DESC="Ingrese el código de autorización que será requerido."
PLG_USER_REGAUTH_GROUP_LABEL="Asignar a grupo(s)"
PLG_USER_REGAUTH_GROUP_DESC="Seleccione el(los) grupo(s) a los que se asignará el usuario (el valor predeterminado es 'registrado')."
PLG_USER_REGAUTH_GROUP_DESC="Seleccione el(los) grupo(s) a los que se asignará el usuario (el valor predeterminado es 'registrado')."
2 changes: 1 addition & 1 deletion language/es-ES/es-ES.plg_user_regauth.sys.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
; translation submitted by proserven ( https://github.com/proserven )

PLG_USER_REGAUTH_XML_DESCRIPTION="Plugin para requerir un código de autorización/invitación para registrarse"
PLG_USER_REGAUTH="Usuario - RegAuth"
PLG_USER_REGAUTH="Usuario - RegAuth"
2 changes: 1 addition & 1 deletion regauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function onContentPrepareForm ($form, $data)
// and that the correct authorization value was entered
public function onUserBeforeSave ($user, $isnew, $new)
{
if (!$isnew || $this->app->isAdmin()) return true;
if (!$isnew || $this->app->isClient('administrator')) return true;

$jform = $this->app->input->post->get('jform', [], 'array');

Expand Down
6 changes: 3 additions & 3 deletions regauth.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<extension version="3.0" type="plugin" group="user">
<name>plg_user_regauth</name>
<author>Ron Crans</author>
<creationDate>April 2021</creationDate>
<creationDate>October 2021</creationDate>
<copyright>(C) 2012-2021 RJCreations. All rights reserved.</copyright>
<license>GNU General Public License version 3 or later; see LICENSE.txt</license>
<authorEmail>[email protected]</authorEmail>
<version>1.2.0</version>
<updater jver=".*" pver="5.6" />
<version>1.2.1</version>
<updater jver="[34]\.*" pver="5.6" />
<description>PLG_USER_REGAUTH_XML_DESCRIPTION</description>
<files>
<filename plugin="regauth">regauth.php</filename>
Expand Down
2 changes: 1 addition & 1 deletion rules/authcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ public function test(SimpleXMLElement $element, $value, $group = null, Registry
return false;
}

}
}

0 comments on commit 5ede790

Please sign in to comment.