"My Papers" admin nav should be removed for users without any papers
Reported in https://redmine.gc.cuny.edu/issues/10580#note-13 by Sara.
Fix coming shortly.
Updated by Raymond Hoh over 1 year ago
- Status changed from Assigned to Staged for Production Release
In #12702, the "Papers" nav was removed from a user's profile if the user did not author or follow any papers. However, this code also needed to extend to the admin nav menu.
I've addressed this by caching the papers lookup to usermeta and referencing this value to determine whether to show the "My Papers" admin nav or not. I've also removed the "My Papers" admin nav from sub-sites in the
cac-bp-admin-bar-mods plugin. See https://github.com/cuny-academic-commons/cac/commit/8e1157e4167f72b97fdb20f54f167e74c116b4f2.
This will be deployed in tomorrow's maintenance release.