Hi!

After updating to the newest module version I noticed that info about cck fields is missing.
It is showed only for admins. When I give an admin role to some user, the info about cck field was shown for him.

screenshot with missing info is attached.
thanks for repairing.
Igorik
http://www.somvprahe.sk

CommentFileSizeAuthor
content_complete.jpg5.73 KBigorik

Comments

pvhee’s picture

Status: Active » Closed (works as designed)

From 1.2 onwards, the permission system has changed slightly:

  • Users with permission 'access content complete' can see the complete blocks
  • The edit links to the CCK fields are shown only to users IF they have permission to edit the node. Thus, it might be that you can see the percentage (because the user has 'access content complete' permission, but NOT the links to edit the fields, because users do NOT have the permission to edit that specific node.

In your case, your editor does not have the permission to edit that specific node (either because he cannot edit nodes of that type, or he cannot edit his own nodes of that type).

igorik’s picture

Status: Closed (works as designed) » Active

Hi
there will be some bug with permissions probably. Users can't see cck field info on their *own* content profile pages(they can edit them). When i give to users admin rights, then they can see info about Their missing cck fields. All my users have permissions "access content complete" and administer has + permission administer content complete.
Thanks
igor

pvhee’s picture

I replicated your situation, and I think I know what causes confusion: you are most likely using the block "Content Complete: Profile (First Node)" while you should be using the block "Content Complete: Node Completeness".

Here is the difference:

  • Content Complete: Profile (First Node): gives the completeness for the first node of that type (in this case Profile). This block is here for legacy. Note that it does not correspond on the block in version 1.1. It only shows completeness for the first node and not for e.g. the profile node of the current user. This block will likely be removed in the next version of the module and replaced by a views plugin
  • Content Complete: Node Completeness: this gives completeness for the current node (e.g. your profile node). It can be used in node context only. I will make it available in every context using views blocks, but this is work in progress.
pvhee’s picture

I realized this change in behavior - due to the more flexible architecture using views in 1.2 - might cause confusion. Therefore, I changed the behavior of the block 'Content Complete: Profile (First Node)' to reflect exactly the behavior of version 1.1.

Code is committed to the dev version. Could you please confirm it works in your case? If so, I will roll out version 1.2-beta4.

igorik’s picture

Hi

I tried latest dev version but now non-admin user can't see any info, % nor cck fields, no block is shown at all.
I tried both blocks, and each standalone, but no progress.
The only person who can see the block (% with cck fields) is admin.

I uninstalled and installed again this module, clear cache, rebuilding module cache info, but nothing help.
Permissions are ok.

pvhee’s picture

This works fine on my local sandbox.. are you sure you checked out the last version on CVS? http://drupal.org/node/362624/cvs-instructions/DRUPAL-6--1

pvhee’s picture

1.2-beta4 has been released. Please recheck with your situation, thanks!

igorik’s picture

Hi

with latest version -the block "Content Complete: User profile (first node)" is shown correctly.

Users can see only their content complete block, doesn't matter who's profile they visit (what is I guess right behaviour and I am using php code to be sure that this block is shown on profile page and only his owner ).
I found that this block doesn't respect "Hide the blocks when the percentage reaches 100%"
and it is hidden although I have unchecked this box.

The second block (current node) - I never saw this block.

thanks for your work
Igor

pvhee’s picture

Status: Active » Fixed

The Hide the blocks when the percentage reaches 100%" is now fixed.

I don't see any other problems that are not yet addressed in this issue, so I mark it as fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.