This commit is contained in:
Marijn Jansen
2017-02-03 11:31:18 +01:00
parent ac2ce3d07b
commit 6d5de98c1d
5 changed files with 61 additions and 5 deletions

View File

@@ -281,6 +281,12 @@ function checkPermissionOnPost(int $postID, int $userID) : bool {
}
}
/**
* Returns role of an user.
* @param int $userID
* @param int $groupID
* @return mixed role of an user.
*/
function getRoleInGroup(int $userID, int $groupID) {
$stmt = prepareQuery("
SELECT