User login

Userreference Access module development notes

The genesis is in Michelle's request for a userreference access module which we called a node authors module in the notes over there.

ben-agaric: OK, on userfield access module-- is any node access module in use?
[10:01pm] ben-agaric: Or are we talking about editing rights primarily?
[10:01pm] ben-agaric: (and by primarily i mean solely )
[10:02pm] Michelle: Editing and viewing. Sorry, forgot about that part until just now (haven't looked at this stuff in a monht)
[10:04pm] Michelle: What the usecase is, is a person wants an appraisal so they click a link on the appraiser's profile that takes them to a form they fill out with their info. This appraisal request can only be seen by the requester, the appraiser it's being requested of, and admins
[10:04pm] Michelle: The appraiser should be able to view/edit/delete just the same as the user requesting the appraisal
[10:04pm] Michelle: Does that make any sense?
[10:09pm] ben-agaric: Yes, this should be a very, very common use case.
[10:11pm] ben-agaric: But no matter what I search for I get my own notes from a month ago, or links to my relativity_access module!
[10:11pm] Michelle: I thought it would make a good general module. I wrote my part to be as generic as I could as they said they're willing to release it
[10:13pm] Michelle: I'm not aware of any existing module that does this, but there's so many modules these days
ben-agaric: OK, based on http://api.drupal.org/api/function/node_access/5 the one difference between the kind of access we can grant through node_access_grants and what content authors have is that unpublished nodes (status = 0) won't be viewable by our userreference folks.
[10:33pm] Michelle: I don't think that's a problem for this

Later update:

Sadly, copy-paste loses all the smileys ;-)

Michelle: ben-agaric - Speaking of modules...
[09:42am] ben-agaric: Hi Michelle, in the testing stage i think/hope
[09:43am] Michelle: Cool
[09:43am] ben-agaric: I've got a few things I have to do first-- do you want it untested
[09:44am] Michelle: I won't be able to get to it this weekend... So maybe see where it's at early next week? If still untested, I can always test it, too
[09:44am] ben-agaric: i'll have it tested by then
[09:45am] ben-agaric: working on node access control makes one uncertain of which way gravity pulls
[09:45am] Michelle: LOL
[09:46am] Michelle: I haven't tried it... I was about to when you piped up and said you were going to write this module that just happened to be exactly what I need. LOL
[09:46am] ben-agaric: the main question on this module though is whether it will override view access control (which we don't want it to have anything to do with)
[09:46am] ben-agaric: but if you're not using any access control modules that won't matter at all
[09:47am] Michelle: Well, it would be ok by me if it did... I need to hide it from view. But I can try and add that myself if you don't want to do that part

Resolution

Searched words: 
drupal group node editing drupal multiple people edit node userreference node access userreference node edit permission drupal node edit access

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.