In admin/user/permissions I can set permissions to:
access news feeds
access printer-friendly version
access comments
access site-wide contact form
access content
view revisions
access statistics
view post access counter
access administration pages
view uploaded files
access user profiles
As far as I can tell, all these except access site-wide contact form (and perhaps access administration pages?) give permission to look at different parts of the site. I suggest using the same word for all these. When we use different words, users expect them to describe different kinds of permissions.
To me, "access" sounds like it gives more than viewing permissions, it sounds like it gives permission to do something. Therefore, I suggest using "view". Admittedly, English isn't my native language, but after looking at "access" in a few dictionaries, I think my understanding of the word is pretty mainstream.
| Comment | File | Size | Author |
|---|---|---|---|
| #27 | drupal-193897-27.patch | 103.13 KB | bradfordcp |
| #23 | drupal-193897-23.patch | 103.76 KB | bradfordcp |
| #20 | drupal-193897-20.patch | 103.76 KB | bradfordcp |
| #14 | drupal-193897-14.patch | 75.63 KB | bradfordcp |
| #12 | drupal-193897-12.patch | 67 KB | bradfordcp |
Comments
Comment #1
zirvap commentedComment #2
zirvap commentedComment #3
gábor hojtsyIn cases like the contact form, view sounds quite bad, access seems more appropriate. While I agree that these can be improved, since these are permission names, it is past the point we can modify them (they need update functions, contrib modules might depend on them etc). We already did some permission modifications late, and now we are past the point where this would be workable. This would be a great improvement in Drupal 7 though.
Comment #4
ultimateboy commentedInteresting improvement. I agree that there should be consistency here. I think that 'access' should be used when the user can do something with the permission while view should be used when the user can only see information. The following is a list of permissions using 'access' or 'view' (and the odd 'inspect' from poll.module) with a few modifications based on that definition.
AccessView news feedsAccessView printer-friendly versionAccessView contentInspectView all votesAccessView statisticsAccessView site reportsAccessView user profilesIf others agree that these changes are good, I'll put together a quick patch.
Comment #5
zirvap commented+1 from me :-)
Comment #6
karschsp commentedtagging for novice queue
Comment #7
bradfordcp commentedSince the last person mentioning a patch was at the end of January, I took a shot at creating a patch with the necessary changes.
P.S. - Please be kind as this is my first patch :)
Comment #9
bradfordcp commentedI tweaked my GREPs to find some missing permissions and tests.
Comment #10
bradfordcp commentedComment #12
bradfordcp commentedComment #13
ultimateboy commentedNice work so far. Definitely a solid start. I believe you have successfully changed all of the perms to the new wording throughout the code, but there is still a bit of work to do.
This was probably just an overlooked changed by a bulk change, you should not be touching old update functions.
Secondly, you need to account for updates. When a site is being updated from Drupal 6, it is going to have the old permission strings stored in the database. Any permission string you change also needs an associated update in the .install file in hook_update_7000().
See the book_update_6000() referenced above for an example of this. Permissions for book were changed a bit from D5=>D6, so you can use this as a starting point for all of these changes.
Comment #14
bradfordcp commentedAdded Update functions and fixed an update which I should not have touched...
Comment #16
xanoVery good, especially for a first patch! Few minor things:
Needs a period at the end.
Also needs a period. Newlines for new sentences are not necessary. You can just keep on going until you hit the 80 characters.
This can be done simpler:
Keep up the good work! :)
Comment #17
bsherwood commentedIt seems that the only two from that list that weren't changed were:
Contact: Access site-wide contact form
System: Access administration pages
I personally don't see a problem with using 'View' for these. As English is my native tongue, I don't see these as being clunky to say.
Contact: View site-wide contact form
System: View administration pages
While I can understand the OP position with using "Access" to describe an action (i.e it sounds like it gives permission to do something). I would opt for renaming "Access" to "Use", but thats another issue, I suppose.
Contact: Use site-wide contact form
System: Use administration pages
Comment #18
zirvap commentedDoubleplusone to "use" in those two cases! That's a lot clearer and more informative than access, at least to my non-native-English ears :-)
Just to be clear: It's not the clunkyness of the phrases I'm worried about, it's the information contained in them. Both "view" and "use" are easy to understand.
Comment #19
bsherwood commentedShould we open another issue for these two cases? Or should the discussion stay within this issue?
Comment #20
bradfordcp commentedI'm not sure, although I have already rolled the "use" changes into the next patch...
Comment #21
yoroy commentedstatus to needs review then
Comment #23
bradfordcp commentedFull updated, applied the patch, fixed issues, created new patch, and *remembered to change status*. :)
Comment #24
bradfordcp commentedCorrection, I forgot to change the status...
Comment #25
Bojhan commentedThe wording change seems solid, it is a good thing we are using more clear language for this - acces sounds to heavy for that cause.
Comment #27
bradfordcp commentedComment #29
MichaelCole commentedThis is a good idea, but I think it's too late for 7.x code slush.
If we re-rolled and applied this patch now, it would break the api that modules are relying on these access permissions.
I'm all for intelligent naming conventions. The notes about "use" and "view" are good. use/access imply read/write. view implies read.
Let's do this in 8.x first thing, so that it doesn't get any bigger (103k patch is alot). Or, break into smaller issues. Maybe module by module?
Moving to 8.x
Comment #30
xanoWe can still do this for the permission titles.
Comment #31
zirvap commentedThis one was fixed in #30984: Usability: Provide descriptions for permissions