check for function not file
Merge pull request #392 from christianwach/1.6.x

Check for function not file
Always use passed user_id in bp_docs_user_can()

Also clears up some issues with 0 vs false, which could result in improper
values being read for non-logged-in users.

See #394
Don't do item tax cleanup after document delete

Not necessary - we now query for item tax counts dynamically.

Fixes boonebgorges/buddypress-docs-wiki#15
Readme update
Be sure to return $response value when bailing from edit lock heartbeat check

Failure to do so can break other heartbeat actions on the page
Better 'create' permissions checks. Fixes #394
Don't bother with wp_login_url() when redirecting away from off-limits Doc

bp_core_no_access() does its own wp_login_url() wrapping, which makes this one
pointless. There may also be cases where the double redirect_to causes redirect
issues. See #398
Readme
Use term name rather than slug for display in directory tags filter

See #395
Readme update
Improved compatibility with BP 2.0 groups_get_groupmeta() functions

In the previous behavior, groups_*_groupmeta() was stripping the hyphen from
the 'bp-docs' meta_key. On the upgrade to BP 2.0, this bug was fixed. But now,
calls to groups_get_groupmeta() were not finding the proper value (which had
been stored as 'bpdocs'). The new wrapper function ensures that legacy values
will still be found, while they get migrated over to the new settings format.
Activity overhaul

- Break activity-related functionality into a standalone file
- Register activity actions properly using bp_activity_set_action()
- Use BP 2.0 activity format callbacks to generate activity action strings
  at runtime
- Fix inconsistencies in the way that component values are set when
  posting activity items
Don't record group affiliation in activity action if group is hidden

Fixes #397
Readme update
Bump version numbers to 1.7.0
1.7.0 pot update
Merge branch '1.7.x'