change user Seminary roles to Character roles
This commit is contained in:
parent
87f58e2c5b
commit
2185a7c2a4
26 changed files with 145 additions and 156 deletions
|
|
@ -70,28 +70,6 @@
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get users with the given user Seminary role.
|
||||
*
|
||||
* @param int $seminaryId ID of Seminary
|
||||
* @param string $userseminaryrole User Seminary role
|
||||
* @return array List of users
|
||||
*/
|
||||
public function getUsersWithSeminaryRole($seminaryId, $userseminaryrole)
|
||||
{
|
||||
return $this->db->query(
|
||||
'SELECT users.id, users.created, users.username, users.url, users.surname, users.prename, users.email '.
|
||||
'FROM users '.
|
||||
'LEFT JOIN users_userseminaryroles ON users_userseminaryroles.user_id = users.id '.
|
||||
'LEFT JOIN userseminaryroles ON userseminaryroles.id = users_userseminaryroles.userseminaryrole_id '.
|
||||
'WHERE users_userseminaryroles.seminary_id = ? AND userseminaryroles.name = ? '.
|
||||
'ORDER BY username ASC',
|
||||
'is',
|
||||
$seminaryId, $userseminaryrole
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get a user and its data by its ID.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue