Skip to content
Snippets Groups Projects
Commit 010ab253 authored by Eirik Morland's avatar Eirik Morland
Browse files

Issue #3426976 by eiriksm: Make it possible to check ::isAdmin with current user object

parent 2e2aad3c
No related branches found
No related tags found
1 merge request!37Make it possible
Pipeline #116233 passed with warnings
......@@ -2,6 +2,7 @@
namespace Drupal\violinist_teams;
use Drupal\Core\Session\AccountInterface;
use Drupal\node\Entity\Node;
use Drupal\user\UserInterface;
......@@ -224,7 +225,7 @@ class TeamNode extends Node {
/**
* Check if a user is an admin of the team.
*/
public function isAdmin(UserInterface $user) {
public function isAdmin(AccountInterface $user) {
if (!$user->id()) {
return FALSE;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment