there is no privacy to attribute to any circle,
they all are private, that's all.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2015-09-10 Paul Schneider <paul@pschneider.fr>
|
||||||
|
|
||||||
|
* NpgsqlCircleProvider.cs:
|
||||||
|
|
||||||
2015-09-10 Paul Schneider <paul@pschneider.fr>
|
2015-09-10 Paul Schneider <paul@pschneider.fr>
|
||||||
|
|
||||||
* NpgsqlCircleProvider.cs: * refactoring
|
* NpgsqlCircleProvider.cs: * refactoring
|
||||||
|
@ -47,11 +47,9 @@ namespace WorkFlowProvider
|
|||||||
cnx.Open ();
|
cnx.Open ();
|
||||||
using (NpgsqlCommand cmd = cnx.CreateCommand ()) {
|
using (NpgsqlCommand cmd = cnx.CreateCommand ()) {
|
||||||
cmd.CommandText = "update circle " +
|
cmd.CommandText = "update circle " +
|
||||||
"set title = :title, " +
|
"set title = :title " +
|
||||||
"isprivate = :pv " +
|
|
||||||
"where _id = :cid ";
|
"where _id = :cid ";
|
||||||
cmd.Parameters.AddWithValue ("title", c.Title);
|
cmd.Parameters.AddWithValue ("title", c.Title);
|
||||||
cmd.Parameters.AddWithValue ("pv", c.IsPrivate);
|
|
||||||
cmd.Parameters.AddWithValue ("cid", c.Id);
|
cmd.Parameters.AddWithValue ("cid", c.Id);
|
||||||
cmd.ExecuteNonQuery ();
|
cmd.ExecuteNonQuery ();
|
||||||
}
|
}
|
||||||
@ -80,7 +78,6 @@ namespace WorkFlowProvider
|
|||||||
dr.GetOrdinal ("title"));
|
dr.GetOrdinal ("title"));
|
||||||
circ.Owner = dr.GetString (
|
circ.Owner = dr.GetString (
|
||||||
dr.GetOrdinal ("owner"));
|
dr.GetOrdinal ("owner"));
|
||||||
circ.IsPrivate = !dr.GetBoolean (dr.GetOrdinal ("public"));
|
|
||||||
|
|
||||||
}
|
}
|
||||||
dr.Close ();
|
dr.Close ();
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2015-09-10 Paul Schneider <paul@pschneider.fr>
|
||||||
|
|
||||||
|
* instdbws.sql:
|
||||||
|
|
||||||
2015-09-10 Paul Schneider <paul@pschneider.fr>
|
2015-09-10 Paul Schneider <paul@pschneider.fr>
|
||||||
|
|
||||||
* yavsc.js:
|
* yavsc.js:
|
||||||
|
@ -658,7 +658,6 @@ CREATE TABLE circle
|
|||||||
owner character varying(255) NOT NULL, -- creator of this circle
|
owner character varying(255) NOT NULL, -- creator of this circle
|
||||||
applicationname character varying(255) NOT NULL, -- Application name
|
applicationname character varying(255) NOT NULL, -- Application name
|
||||||
title character varying(512) NOT NULL,
|
title character varying(512) NOT NULL,
|
||||||
public boolean DEFAULT false, -- true when this circle is a public circle, from which the title would be available from an anonymous access to the owner's profile
|
|
||||||
CONSTRAINT circle_pkey PRIMARY KEY (_id),
|
CONSTRAINT circle_pkey PRIMARY KEY (_id),
|
||||||
CONSTRAINT circle_owner_fkey FOREIGN KEY (owner, applicationname)
|
CONSTRAINT circle_owner_fkey FOREIGN KEY (owner, applicationname)
|
||||||
REFERENCES users (username, applicationname) MATCH SIMPLE
|
REFERENCES users (username, applicationname) MATCH SIMPLE
|
||||||
@ -673,7 +672,6 @@ ALTER TABLE circle
|
|||||||
COMMENT ON COLUMN circle._id IS 'Circle identifier';
|
COMMENT ON COLUMN circle._id IS 'Circle identifier';
|
||||||
COMMENT ON COLUMN circle.owner IS 'creator of this circle';
|
COMMENT ON COLUMN circle.owner IS 'creator of this circle';
|
||||||
COMMENT ON COLUMN circle.applicationname IS 'Application name';
|
COMMENT ON COLUMN circle.applicationname IS 'Application name';
|
||||||
COMMENT ON COLUMN circle.public IS 'true when this circle is a public circle, from which the title would be available from an anonymous access to the owner''s profile';
|
|
||||||
|
|
||||||
|
|
||||||
-- Table: circle_members
|
-- Table: circle_members
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2015-09-10 Paul Schneider <paul@pschneider.fr>
|
||||||
|
|
||||||
|
* CircleBase.cs:
|
||||||
|
|
||||||
2015-09-10 Paul Schneider <paul@pschneider.fr>
|
2015-09-10 Paul Schneider <paul@pschneider.fr>
|
||||||
|
|
||||||
* CircleBase.cs: The Circle base
|
* CircleBase.cs: The Circle base
|
||||||
|
@ -46,11 +46,6 @@ namespace Yavsc.Model.Circles
|
|||||||
/// <value>The title.</value>
|
/// <value>The title.</value>
|
||||||
public string Title { get; set; }
|
public string Title { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Gets or sets a value indicating whether this instance is private.
|
|
||||||
/// </summary>
|
|
||||||
/// <value><c>true</c> if this instance is private; otherwise, <c>false</c>.</value>
|
|
||||||
public bool IsPrivate { get; set; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user