Re: Queries that return permissions - Mailing list pgsql-php

From Christopher Kings-Lynne
Subject Re: Queries that return permissions
Date
Msg-id 402DA04D.3080703@familyhealth.com.au
Whole thread Raw
In response to Queries that return permissions  (Thom Dyson <TDyson@sybex.com>)
List pgsql-php
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

pgsql-php by date:

Previous
From: Thom Dyson
Date:
Subject: Re: Queries that return permissions - D'OH
Next
From: "HOLMAN RODRIGUEZ"
Date:
Subject: help php-postgresql