pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Patnude <gpatnude@hotmail.com>
To: pgsql-admin@postgresql.org
Subject: Re: Urgent!!!! Setting permissions on Views
Date: Mon, 16 Feb 2004 09:56:49 -0800
Message-ID: <c0r0k6$2s68$1@news.hub.org> (raw)
References: <002e01c3f199$6fb52a60$b501a8c0@FI.USJ.EDU.LB>

CREATE RULE no_inserts_on_my_view AS ON INSERT TO myView DO INSTEAD NOTHING;


-- 
Greg Patnude / The Digital Demention
2916 East Upper Hayden Lake Road
Hayden Lake, ID 83835
(208) 762-0762

  ""Dani Mezher"" <dany.mezher@fi.usj.edu.lb> wrote in message news:002e01c3f199$6fb52a60$b501a8c0@FI.USJ.EDU.LB...
  Hello,

   

              I have a small problem setting the permissions for my data. Actually my application allows specific users to manipulate selected tuples stored in the same tables. Therefore, I revoked all privileged on the tables and encapsulated them through views based on the "user" variable. This way specific users control specific data. 

   

              The problem arises when I try to lock my data once it was validated. Although I set the permissions on the views to select and revoked the insert, update and delete privileges; my users are capable of modifying the table through the views. I even tried to revoke the select permission but this does not solve the problem.

   

              Can anyone help me fix this problem???

   

  Regards

view thread (3+ messages)

Message-ID: <c0r0k6$2s68$1@news.hub.org>
Permalink:  ../c0r0k6$2s68$1@news.hub.org/
Also on:    postgresql.org/message-id/c0r0k6$2s68$1@news.hub.org

 · 

reply

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-admin@postgresql.org
  Cc: gpatnude@hotmail.com
  Subject: Re: Urgent!!!! Setting permissions on Views
  In-Reply-To: <c0r0k6$2s68$1@news.hub.org>
  References: <002e01c3f199$6fb52a60$b501a8c0@FI.USJ.EDU.LB> <c0r0k6$2s68$1@news.hub.org>

* 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