Browse Source

! Typo in ManagePermissions code
! SSI doesn't play properly with PostgreSQL (fixes #659)

Signed-off-by: Peter Spicer <[email protected]>

Peter Spicer 10 years ago
parent
commit
95df1e9203
2 changed files with 3 additions and 3 deletions
  1. 2 2
      SSI.php
  2. 1 1
      Sources/ManagePermissions.php

+ 2 - 2
SSI.php

@@ -832,7 +832,7 @@ function ssi_fetchGroupMembers($group_id = null, $output_method = 'echo')
 	$query_where = '
 		id_group = {int:id_group}
 		OR id_post_group = {int:id_group}
-		OR FIND_IN_SET({int:id_group}, additional_groups)';
+		OR FIND_IN_SET({int:id_group}, additional_groups) != 0';
 
 	$query_where_params = array(
 		'id_group' => $group_id,
@@ -1651,7 +1651,7 @@ function ssi_boardNews($board = null, $limit = null, $start = null, $length = nu
 		SELECT id_board
 		FROM {db_prefix}boards
 		WHERE ' . ($board === null ? '' : 'id_board = {int:current_board}
-			AND ') . 'FIND_IN_SET(-1, member_groups)
+			AND ') . 'FIND_IN_SET(-1, member_groups) != 0
 		LIMIT 1',
 		array(
 			'current_board' => $board,

+ 1 - 1
Sources/ManagePermissions.php

@@ -1144,7 +1144,7 @@ function setPermissionLevel($level, $group, $profile = 'null')
 	// Moderator - ie. moderators :P.  They can do what standard can, and more.
 	$groupLevels['global']['moderator'] = array_merge($groupLevels['global']['standard'], array(
 		'calendar_post',
-		'calen	ddar_edit_own',
+		'calendar_edit_own',
 		'access_mod_center',
 		'issue_warning',
 	));