I am new to Drupal. I am working on a website where I have 2 user roles: Site admin and editor.
The site admin has all permissions. I want the editor to only have the permission to edit content but not to publish or edit them. He can view his edited content but cannot publish them.
Different people suggested me different options, like use this module, use that module, but no body is showing me a neat and proper solution.
Override Node Options overrides this functionality and it's pretty straight forward.
The Override Node Options module allows permissions to be set to each field within the Authoring information and Publishing options field sets on the node form.
You can use Workflow,
This module allows you to create arbitrary Workflows, and assign them to Entities.
Workflows are made up of workflow states. Transitions between states can be allowed per role. For example, a workflow with the states Draft, Review, and Published could be assigned to the Story node type. Only users with role 'chief editor' can set Stories to the published state. You can set up the Workflow to alter states from form, page, comment and a special workflow tab.
with or without Revisioning.
Revisioning is a module for the configuration of workflows to create, moderate and publish content revisions.
Revisioning contains a slightly old tutorial on using both together on its doc pages.