How to set field permission programmatically in Drupal?

How can I get Drupal to work nicely with MarsEdit (and Ecto)?

  • How can I get Drupal to work nicely with MarsEdit (and Ecto)? Our server admin set up Drupal 5.1 recently. I have enabled blogapi and enabled our News story type in the Blog API admin screen. Here's my problem. As a regular user with permission to publish and edit my own news stories, I cannot successfully retrieve posts or publish posts in MarsEdit. I receive an error saying that I do not have permission to edit said blog. However, if I create a MarsEdit Weblog and use the uber admin account I have no problem. so i tried setting up a user role with the below permissions enabled, just to see if it would allow me to successfully use MarsEdit (the idea being take away that which was not required later).block module administer blocks use PHP for block visibility comment module access comments administer comments post comments post comments without approval filter module administer filters menu module administer menu node module access content administer content types administer nodes create page content create story content edit own page content edit own story content edit page content edit story content revert revisions view revisions search module administer search search content use advanced search system module access administration pages administer site configuration select different theme taxonomy module administer taxonomy upload module upload files view uploaded files user module access user profiles administer access control administer users change own username Unsuccessful. The same error was returned. Is there an additional setting somewhere that I need to toggle in order to get blogging API's to work successfully? Obviously giving out the primary admin account info is not an option, and I'd like this to be available to staff who can post and edit their own news items to the site.

  • Answer:

    I've had this exact problem and I know what you can do to fix it: You need to enable user blogs / create-edit own blog, but IIRC you can turn it off that story type in the Remote API.

missed at Ask.Metafilter.Com Visit the source

Was this solution helpful to you?

Other answers

brilliant! thanks so much :D

missed

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.