Skip to content

Commit

Permalink
Restrict column special page to torque admin
Browse files Browse the repository at this point in the history
Access is restricted to torquedataconnect-admin group. Issue #23.
  • Loading branch information
YaxelPerez committed Aug 4, 2020
1 parent 0415a16 commit 9e2a491
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class TorqueDataConnectColumns extends SpecialPage {
public function __construct() {
parent::__construct('TorqueDataConnectColumns');
parent::__construct('TorqueDataConnectColumns', 'torquedataconnect-admin');
}

public function execute($subPage) {
Expand All @@ -15,6 +15,7 @@ public function execute($subPage) {
global $wgTorqueDataConnectSheetName;

$this->setHeaders();
$this->checkPermissions();
$ch = curl_init();
curl_setopt(
$ch,
Expand Down

0 comments on commit 9e2a491

Please sign in to comment.