MantisBT: master 1c436505

Author Committer Branch Timestamp Parent
cproensa dregad master 2017-08-19 07:50 master 513dd1ab
Affected Issues  0021654: Deprecate access_has_any_project()
Changeset

Deprecate access_has_any_project()

This function may mislead into incorrect validations. Usually you want
to check that a user meets a threshold for any project, but that
threshold may be configured differently for each project, and the user
may also have different access levels in each project due to private
projects assignment.
In that scenario, $p_access_level can't be a static threshold, but a
"threshold identifier" instead, that must be evaluated for each project.
Function "access_has_any_project_level()" provides that functionality,
also covers the basic usage of this function.

For such reasons, this function has been deprecated.

Fixes: 0021654

mod - core/access_api.php Diff File