From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: Thom Dyson <TDyson@sybex.com>
Cc: pgsql-php@postgresql.org
Subject: Re: Queries that return permissions
Date: Sat, 14 Feb 2004 12:13:01 +0800
Message-ID: <402DA04D.3080703@familyhealth.com.au> (raw)
In-Reply-To: <OF733211D3.38B30848-ON88256E39.0061C538-88256E39.00621BC1@sybex.com>
References: <OF733211D3.38B30848-ON88256E39.0061C538-88256E39.00621BC1@sybex.com>
Hi Thom,
Download phpPgAdmin (phppgadmin.sourceforge.net) and look at the
getPrivileges function in classes/database/Postgres.php.
Cheers,
Chris
Thom Dyson wrote:
>
>
>
> I'm laying the ground work to migrate a database to a web front end. One
> thing I would like is, when generating the HTML, to display read-only
> fields as text, while fields that are updateable as input fields, based on
> the permissions that the user has to the table. This way a given user
> would not be confused trying to change data they have no permission to.
>
> Does anyone know where there is code that will do this sort of thing?
>
> Thom Dyson
> Director of Information Services
> Sybex, Inc.
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: chriskl@familyhealth.com.au, TDyson@sybex.com
Subject: Re: Queries that return permissions
In-Reply-To: <402DA04D.3080703@familyhealth.com.au>
References: <OF733211D3.38B30848-ON88256E39.0061C538-88256E39.00621BC1@sybex.com> <402DA04D.3080703@familyhealth.com.au>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox