Re: [Cppcms-users] plugins for cppcms-blog
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2011-08-15 07:50:17
|
Hi, I can suggest you to do following: Database Schema =============== - DB changes: 3 places mysql.sql, sqlite.sql and postgresql.sql - Add role DB column: role varchar(16) not null with default 'guest' - move DB version from 3 to 4. - Create an update script in the sql directory named sql/upgrade-3-to-4.sql Such that all roles set to 'admin' - Update DB version from 3 to 4 in apps/dbversion. - Add an automatic upgrade script similar bool upgrade_2_3(cppdb::session &sql) and update bool upgrade(std::string const ¤t_ver,cppdb::session &sql) Administration ============== I'd define 4 roles with permissions: - admin - add users, remove users, edit any posts, publish and unpublish any posts, edit blog options, edit categories, write, publish and un-publish pages - editor - edit any posts, publish and unpublish any posts, edit categories, write, publish and un-publish pages, add and remove guest users. - writer - edit and view his own posts, publish and unpublish hist own posts, write pages (but not publish them) - guest - edit his own unpublished posts, but without ability to publish, unpublish or edit published posts. Now add permission checks according to the role on all levels about what is displayed and what is allowed. New Administration Pages ======================== - Add a new page for users editing with an option to add, modify and delete users. - Add a page that allows a user to change his password. Would you take this on you? Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.sf.net/ CppDB - C++ SQL Connectivity: http://cppcms.sf.net/sql/cppdb/ >________________________________ >From: David Elrom <dav...@gm...> >To: cpp...@li...; Artyom Beilis <art...@ya...> >Sent: Sunday, August 14, 2011 11:00 PM >Subject: Re: [Cppcms-users] plugins for cppcms-blog > > >So initially I'm going to implement the following features: >*user groups >*many-to-many relation between users and groups > >Then an ACL schema needs to be designed. I'm not too sure about this one, I suppose some things of interest would be per category access control (read / write etc) where rights can be granted on a per user or per group basis. (Plus the distinction between submitting an article, and being able to change another user's article (i.e. be a mod)) > > >One more "special" right we would need is admin. > > >Your thoughts? > > >-elrom > > >On Fri, Aug 12, 2011 at 11:28 AM, David Elrom <dav...@gm...> wrote: > >Im very much interested in contributing. I want to get an idea for what people want. User management and user centric features are something that I need and something people would probably want. >>On Aug 12, 2011 11:16 AM, "Artyom Beilis" <art...@ya...> wrote: >>> >>> >>>> >>>>I just compiled the new cppcms-blog (props on the perfectly >>> >>>> working cmake files, i can never get cmake to do what i want) >>>> and was about to start making some changes to the code (I want >>>> the ability to have per user views, i.e. certain pages and >>>> entries are only visible to certain users, etc). >>> >>>> It occurred to me that this might be better suited as some sort of plugin. >>>> >>> >>> As blogging system CppCMS's blog has very weak user management >>> system. It may and should be improved. >>> >>> >>> Currently I don't have much time and it is not the top >>> priority right now, but if you wish to work on it I'd be >>> glad to receive any help. >>> >>> >>>> >>>> So.. Do you think there would be benefit / interest >>>> in implementing some sort of plugin / dynamically loadable >>>> module framework for cppcms-blog? >>>> >>> >>> Plug-in system could be nice but currently Cpp Blog misses >>> many other essential features that should be in the core >>> of the blogging system. >>> >>> >>>> >>>>It would be very nice if we could make cppcms-blog of the >>>> same caliber as say, wordpress / drupal (from an >>>> extensiblity point of view, not from a bloat pov). >>>> >>> >>> Yeah it would be nice... Would you do it :-) ? >>> >>> >>> Artyom >>> >>> >>> ------------------------------------------------------------------------------ >>> Get a FREE DOWNLOAD! and learn more about uberSVN rich system, >>> user administration capabilities and model configuration. Take >>> the hassle out of deploying and managing Subversion and the >>> tools developers use with it. >>> http://p.sf.net/sfu/wandisco-dev2dev >>> _______________________________________________ >>> Cppcms-users mailing list >>> Cpp...@li... >>> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> > >------------------------------------------------------------------------------ >FREE DOWNLOAD - uberSVN with Social Coding for Subversion. >Subversion made easy with a complete admin console. Easy >to use, easy to manage, easy to install, easy to extend. >Get a Free download of the new open ALM Subversion platform now. >http://p.sf.net/sfu/wandisco-dev2dev >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |