Skip to content

Commit 1dd440d

Browse files
committed
Move User class to User\User
1 parent 0f4109e commit 1dd440d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+90
-89
lines changed

src/Controllers/Comment/Create.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function __construct()
2020
public function invoke(?array $args): bool
2121
{
2222
$this->model->acl_allowed = $this->model->active_user
23-
&& $this->model->active_user->getOption(\BNETDocs\Libraries\User::OPTION_ACL_COMMENT_CREATE);
23+
&& $this->model->active_user->getOption(\BNETDocs\Libraries\User\User::OPTION_ACL_COMMENT_CREATE);
2424

2525
if (!$this->model->acl_allowed)
2626
{

src/Controllers/Comment/Delete.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function invoke(?array $args): bool
2525
catch (\UnexpectedValueException) { $this->model->comment = null; }
2626

2727
$this->model->acl_allowed = ($this->model->active_user && (
28-
$this->model->active_user->getOption(\BNETDocs\Libraries\User::OPTION_ACL_COMMENT_DELETE) ||
28+
$this->model->active_user->getOption(\BNETDocs\Libraries\User\User::OPTION_ACL_COMMENT_DELETE) ||
2929
($this->model->comment && $this->model->active_user->getId() == $this->model->comment->getUserId())
3030
));
3131

src/Controllers/Comment/Edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function invoke(?array $args): bool
2828
catch (\UnexpectedValueException) { $this->model->comment = null; }
2929

3030
$this->model->acl_allowed = $this->model->active_user && (
31-
$this->model->active_user->getOption(\BNETDocs\Libraries\User::OPTION_ACL_COMMENT_MODIFY) ||
31+
$this->model->active_user->getOption(\BNETDocs\Libraries\User\User::OPTION_ACL_COMMENT_MODIFY) ||
3232
($this->model->comment && $this->model->active_user->getId() === $this->model->comment->getUserId())
3333
);
3434

src/Controllers/Document/Create.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function __construct()
2020
public function invoke(?array $args): bool
2121
{
2222
$this->model->acl_allowed = $this->model->active_user
23-
&& $this->model->active_user->getOption(\BNETDocs\Libraries\User::OPTION_ACL_DOCUMENT_CREATE);
23+
&& $this->model->active_user->getOption(\BNETDocs\Libraries\User\User::OPTION_ACL_DOCUMENT_CREATE);
2424

2525
if (!$this->model->acl_allowed)
2626
{

src/Controllers/Document/Delete.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function __construct()
1717
public function invoke(?array $args): bool
1818
{
1919
$this->model->acl_allowed = $this->model->active_user
20-
&& $this->model->active_user->getOption(\BNETDocs\Libraries\User::OPTION_ACL_DOCUMENT_DELETE);
20+
&& $this->model->active_user->getOption(\BNETDocs\Libraries\User\User::OPTION_ACL_DOCUMENT_DELETE);
2121

2222
if (!$this->model->acl_allowed)
2323
{

src/Controllers/Document/Edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function __construct()
1616
public function invoke(?array $args): bool
1717
{
1818
$this->model->acl_allowed = $this->model->active_user
19-
&& $this->model->active_user->getOption(\BNETDocs\Libraries\User::OPTION_ACL_DOCUMENT_MODIFY);
19+
&& $this->model->active_user->getOption(\BNETDocs\Libraries\User\User::OPTION_ACL_DOCUMENT_MODIFY);
2020

2121
if (!$this->model->acl_allowed)
2222
{

src/Controllers/EventLog/Index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function __construct()
1919
public function invoke(?array $args): bool
2020
{
2121
$this->model->acl_allowed = $this->model->active_user
22-
&& $this->model->active_user->getOption(\BNETDocs\Libraries\User::OPTION_ACL_EVENT_LOG_VIEW);
22+
&& $this->model->active_user->getOption(\BNETDocs\Libraries\User\User::OPTION_ACL_EVENT_LOG_VIEW);
2323

2424
if (!$this->model->acl_allowed)
2525
{

src/Controllers/EventLog/View.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function __construct()
1414
public function invoke(?array $args): bool
1515
{
1616
$this->model->acl_allowed = $this->model->active_user
17-
&& $this->model->active_user->getOption(\BNETDocs\Libraries\User::OPTION_ACL_EVENT_LOG_VIEW);
17+
&& $this->model->active_user->getOption(\BNETDocs\Libraries\User\User::OPTION_ACL_EVENT_LOG_VIEW);
1818

1919
if (!$this->model->acl_allowed)
2020
{

src/Controllers/News.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace BNETDocs\Controllers;
44

5-
use \BNETDocs\Libraries\User;
5+
use \BNETDocs\Libraries\User\User;
66

77
class News extends Base
88
{

src/Controllers/News/Create.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function __construct()
2323
public function invoke(?array $args): bool
2424
{
2525
$this->model->acl_allowed = $this->model->active_user
26-
&& $this->model->active_user->getOption(\BNETDocs\Libraries\User::OPTION_ACL_NEWS_CREATE);
26+
&& $this->model->active_user->getOption(\BNETDocs\Libraries\User\User::OPTION_ACL_NEWS_CREATE);
2727

2828
if (!$this->model->acl_allowed)
2929
{

0 commit comments

Comments
 (0)