mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[feature/class-prefix] Rename auth => phpbb_auth
PHPBB3-10609
This commit is contained in:
@@ -1105,7 +1105,7 @@ class acp_permissions
|
||||
{
|
||||
if ($user_id != $user->data['user_id'])
|
||||
{
|
||||
$auth2 = new auth();
|
||||
$auth2 = new phpbb_auth();
|
||||
$auth2->acl($userdata);
|
||||
$auth_setting = $auth2->acl_get($permission);
|
||||
}
|
||||
|
@@ -1554,7 +1554,7 @@ class acp_users
|
||||
|| $user_row['user_allow_viewonline'] && !$sql_ary['user_allow_viewonline'])
|
||||
{
|
||||
// We also need to check if the user has the permission to cloak.
|
||||
$user_auth = new auth();
|
||||
$user_auth = new phpbb_auth();
|
||||
$user_auth->acl($user_row);
|
||||
|
||||
$session_sql_ary = array(
|
||||
|
@@ -19,7 +19,7 @@ if (!defined('IN_PHPBB'))
|
||||
* ACP Permission/Auth class
|
||||
* @package phpBB3
|
||||
*/
|
||||
class auth_admin extends auth
|
||||
class auth_admin extends phpbb_auth
|
||||
{
|
||||
/**
|
||||
* Init auth settings
|
||||
@@ -130,7 +130,7 @@ class auth_admin extends auth
|
||||
{
|
||||
if ($user->data['user_id'] != $userdata['user_id'])
|
||||
{
|
||||
$auth2 = new auth();
|
||||
$auth2 = new phpbb_auth();
|
||||
$auth2->acl($userdata);
|
||||
}
|
||||
else
|
||||
|
@@ -19,7 +19,7 @@ if (!defined('IN_PHPBB'))
|
||||
* Permission/Auth class
|
||||
* @package phpBB3
|
||||
*/
|
||||
class auth
|
||||
class phpbb_auth
|
||||
{
|
||||
var $acl = array();
|
||||
var $cache = array();
|
@@ -343,7 +343,7 @@ function check_rule(&$rules, &$rule_row, &$message_row, $user_id)
|
||||
$userdata = $db->sql_fetchrow($result);
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
$auth2 = new auth();
|
||||
$auth2 = new phpbb_auth();
|
||||
$auth2->acl($userdata);
|
||||
|
||||
if (!$auth2->acl_get('a_') && !$auth2->acl_get('m_') && !$auth2->acl_getf_global('m_'))
|
||||
|
@@ -251,7 +251,7 @@ class mcp_warn
|
||||
// Check if can send a notification
|
||||
if ($config['allow_privmsg'])
|
||||
{
|
||||
$auth2 = new auth();
|
||||
$auth2 = new phpbb_auth();
|
||||
$auth2->acl($user_row);
|
||||
$s_can_notify = ($auth2->acl_get('u_readpm')) ? true : false;
|
||||
unset($auth2);
|
||||
@@ -374,7 +374,7 @@ class mcp_warn
|
||||
// Check if can send a notification
|
||||
if ($config['allow_privmsg'])
|
||||
{
|
||||
$auth2 = new auth();
|
||||
$auth2 = new phpbb_auth();
|
||||
$auth2->acl($user_row);
|
||||
$s_can_notify = ($auth2->acl_get('u_readpm')) ? true : false;
|
||||
unset($auth2);
|
||||
|
@@ -66,7 +66,7 @@ class ucp_remind
|
||||
}
|
||||
|
||||
// Check users permissions
|
||||
$auth2 = new auth();
|
||||
$auth2 = new phpbb_auth();
|
||||
$auth2->acl($user_row);
|
||||
|
||||
if (!$auth2->acl_get('u_chgpasswd'))
|
||||
|
Reference in New Issue
Block a user