We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e6aecd commit bcbdd9fCopy full SHA for bcbdd9f
Facebook/FacebookApplication.php
@@ -55,13 +55,13 @@ function __construct() {
55
* or developer of the app and must also be an administrator of the wiki.
56
*/
57
function canEdit($fbUser = NULL) {
58
- global $facebook;
+ global $facebook, $wgUser;
59
if ( !( $fbUser instanceof FacebookUser ) ) {
60
$fbUser = new FacebookUser();
61
}
62
63
// First, check MediaWiki permissions. Then check with Facebook
64
- if ( !$fbUser->getMWUser()->getId() )
+ if ( $fbUser->getMWUser()->getId() == 0 || $fbUser->getMWUser()->getId() != $wgUser->getId() )
65
return false;
66
67
// If $wgFbUserRightsFromGroups is set, this should trigger a group check
0 commit comments