Setting of permission

Author Message

nga patel

Thursday 14 April 2005 2:30:53 am

This problem is regarding to my previous problem that I want to give the right to the simple user to submit the suggestion about my website and he cannot change the site and the site manager received this suggestion and validate that suggestion and then publish it.

Could anybody give any suggestion that how can i implement this.

Thanks in Advance,

"Anyone who has never made a mistake has never tried anything new." -- Einstein

Ralph Ekekihl

Thursday 14 April 2005 8:08:36 am

Hi Nga,

Let's see if I understand you correctly.

You want users (anonymous) to be able to submit a suggestion on a form on the web page. This suggestion should not be published directly, but should go to a site admin. There should be a workflow setup where the site admin can review and validate the suggestion, and then choose to publish it.

Did I understand you correctly?

Contactivity B.V.
http://www.contactivity.com

nga patel

Thursday 14 April 2005 8:18:35 am

Yes, exactly.
In my site I had set the button on the front page from where anyone can change the content of the site, so now I want to set this situation under which the normal user just send the suggestion/comments and could not published it but it is done by administrator only.
In the book(Learning eZ publish 3) under the headlinetopic "AUTHORIZATION AND ROLES" I had read that 'we can specify that a normal user can add comments to articles, but not submit articles themselves.', but here no further things is given and I try to set this logic.
If you have any idea then it is very much welcome for me.

Bård Farstad

Wednesday 20 April 2005 1:01:53 am

I think the simplest solution to this would be to use a feedback form. Users can enter information which is sent directly to the site admin via e-mail. See the sample form bundled with the eZ publish distribution.

If you want to store the information as an object in eZ publish then the anonymous user needs to be able to create and edit objects of a special class. You can make it hidden to any user except admin by disabling read access to it or you can use a workflow.

--bård

Documentation: http://ez.no/doc

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 01:07:16
Script start
Timing: Jan 19 2025 01:07:16
Module start 'layout'
Timing: Jan 19 2025 01:07:16
Module start 'content'
Timing: Jan 19 2025 01:07:17
Module end 'content'
Timing: Jan 19 2025 01:07:17
Script end

Main resources:

Total runtime1.3244 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 589.1484152.6250
Module start 'layout' 0.00600.0026 741.773439.4453
Module start 'content' 0.00861.3144 781.2188586.1172
Module end 'content' 1.32290.0015 1,367.335912.1719
Script end 1.3244  1,379.5078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2518160.0002
Check MTime0.00130.1019160.0001
Mysql Total
Database connection0.00090.066510.0009
Mysqli_queries1.272096.0389620.0205
Looping result0.00070.0519600.0000
Template Total1.293497.720.6467
Template load0.00220.169620.0011
Template processing1.291197.485120.6456
Template load and register function0.00020.014310.0002
states
state_id_array0.00080.062110.0008
state_identifier_array0.00150.115720.0008
Override
Cache load0.00190.1425230.0001
Sytem overhead
Fetch class attribute can translate value0.00080.059130.0003
Fetch class attribute name0.00110.085060.0002
XML
Image XML parsing0.00240.177730.0008
class_abstraction
Instantiating content class attribute0.00000.001060.0000
General
dbfile0.00220.1682230.0001
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs