Closed (won't fix)
Project:
Drupal core
Version:
6.x-dev
Component:
node.module
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
20 Jun 2005 at 20:20 UTC
Updated:
18 Nov 2006 at 19:12 UTC
It is useful for modules to store more information in the grant_view, grant_update, Grant_delete columns than just 1 or 0. This patch treats 0 and 1 just as before, and any value greater than 1 is assumed TRUE (just like PHP).
Organic groups already has 2 needs for this. One would be to store the 'group role' of a member in this table.
Total characters changed: 1
| Comment | File | Size | Author |
|---|---|---|---|
| node_access_0.patch | 620 bytes | moshe weitzman |
Comments
Comment #1
chx commentedI like this patch and as far as I can tell, it won't break anything.
Comment #2
moshe weitzman commentedJonBob confirmed to me that he knows of nothing that breaks with this patch and supports the new functionality.
Comment #3
Steven commentedCommitted to HEAD.
Comment #4
Steven commentedNote: I committed the patch, but the database columns are tinyint(1) in mysql. Shouldn't those be changed too then? Otherwise it's a bit useless.
Killes also raised some performance concerns, but as far as I can see this patch makes no difference as grants are only keyed on (nid,gid,realm), not on any of the grant columns (and even if it were keyed, I don't think a simple greater-than comparison is noticably slower than an is-equal check as keys are typically ordered).
Comment #5
moshe weitzman commentedComment #6
chx commentedthere is no big need for this apparently...