commit | ead1ba45c74092f092d5ca16c1e42a6062b94d18 | [log] [tgz] |
---|---|---|
author | Martin Fick <martin.fick@linaro.org> | Thu Apr 06 17:46:30 2023 -0600 |
committer | Martin Fick <martin.fick@linaro.org> | Thu Apr 06 18:08:16 2023 -0600 |
tree | 8180e7efae432740c9904d790d128785913db0c3 | |
parent | b2af14229a58de980b132773e44119e8c1683e5d [diff] |
Fix the buggy task visibility TaskCofigFactory is looking at the wrong methods to define if a ref is visibile to user. Fix to call RefControl.isVisible() rather than RefControl.canRead(). canRead() only returns the project permissions but isVisible() takes the user and ref into account. Also modify a supporting test. Originally-Authored-By: Adithya Chakilam Change-Id: I89ff399e66f06133212825a0fb3f1239734fb1a9