diff options
| author | Jehan-Guillaume (ioguix) de Rorthais | 2011-06-01 19:45:09 +0000 |
|---|---|---|
| committer | Jehan-Guillaume (ioguix) de Rorthais | 2011-06-01 19:45:09 +0000 |
| commit | 472392bce278e39ebe70a4bda397f28f5792cbaa (patch) | |
| tree | e4eac4753e39a88ac53b623214a56438e3361127 /classes/database | |
| parent | 61b1c52ad6699679df2129579fad7a583b2a387f (diff) | |
remove $username when calling $data->isSuperUser about current connection role
Diffstat (limited to 'classes/database')
| -rwxr-xr-x | classes/database/Postgres.php | 2 | ||||
| -rw-r--r-- | classes/database/Postgres74.php | 2 | ||||
| -rw-r--r-- | classes/database/Postgres80.php | 2 | ||||
| -rw-r--r-- | classes/database/Postgres81.php | 2 | ||||
| -rw-r--r-- | classes/database/Postgres83.php | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/classes/database/Postgres.php b/classes/database/Postgres.php index 588a2cc3..456b1268 100755 --- a/classes/database/Postgres.php +++ b/classes/database/Postgres.php @@ -454,7 +454,7 @@ class Postgres extends ADODB_base { $server_info = $misc->getServerInfo(); - if (isset($conf['owned_only']) && $conf['owned_only'] && !$this->isSuperUser($server_info['username'])) { + if (isset($conf['owned_only']) && $conf['owned_only'] && !$this->isSuperUser()) { $username = $server_info['username']; $this->clean($username); $clause = " AND pr.rolname='{$username}'"; diff --git a/classes/database/Postgres74.php b/classes/database/Postgres74.php index c4f2c28c..66502860 100644 --- a/classes/database/Postgres74.php +++ b/classes/database/Postgres74.php @@ -73,7 +73,7 @@ class Postgres74 extends Postgres80 { $server_info = $misc->getServerInfo(); - if (isset($conf['owned_only']) && $conf['owned_only'] && !$this->isSuperUser($server_info['username'])) { + if (isset($conf['owned_only']) && $conf['owned_only'] && !$this->isSuperUser()) { $username = $server_info['username']; $this->clean($username); $clause = " AND pu.usename='{$username}'"; diff --git a/classes/database/Postgres80.php b/classes/database/Postgres80.php index c8eb5d31..ce15f976 100644 --- a/classes/database/Postgres80.php +++ b/classes/database/Postgres80.php @@ -72,7 +72,7 @@ class Postgres80 extends Postgres81 { $server_info = $misc->getServerInfo(); - if (isset($conf['owned_only']) && $conf['owned_only'] && !$this->isSuperUser($server_info['username'])) { + if (isset($conf['owned_only']) && $conf['owned_only'] && !$this->isSuperUser()) { $username = $server_info['username']; $this->clean($username); $clause = " AND pu.usename='{$username}'"; diff --git a/classes/database/Postgres81.php b/classes/database/Postgres81.php index 0e964615..3fa6eeb2 100644 --- a/classes/database/Postgres81.php +++ b/classes/database/Postgres81.php @@ -67,7 +67,7 @@ class Postgres81 extends Postgres82 { $server_info = $misc->getServerInfo(); - if (isset($conf['owned_only']) && $conf['owned_only'] && !$this->isSuperUser($server_info['username'])) { + if (isset($conf['owned_only']) && $conf['owned_only'] && !$this->isSuperUser()) { $username = $server_info['username']; $this->clean($username); $clause = " AND pr.rolname='{$username}'"; diff --git a/classes/database/Postgres83.php b/classes/database/Postgres83.php index d66ee539..62544fa6 100644 --- a/classes/database/Postgres83.php +++ b/classes/database/Postgres83.php @@ -69,7 +69,7 @@ class Postgres83 extends Postgres84 { $server_info = $misc->getServerInfo(); - if (isset($conf['owned_only']) && $conf['owned_only'] && !$this->isSuperUser($server_info['username'])) { + if (isset($conf['owned_only']) && $conf['owned_only'] && !$this->isSuperUser()) { $username = $server_info['username']; $this->clean($username); $clause = " AND pr.rolname='{$username}'"; |
