Project

General

Profile

Actions

Bug #16313

closed

"My Papers" admin nav should be removed for users without any papers

Added by Raymond Hoh almost 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
Social Paper
Target version:
Start date:
2022-06-28
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

Reported in https://redmine.gc.cuny.edu/issues/10580#note-13 by Sara.

Fix coming shortly.


Related issues

Related to CUNY Academic Commons - Feature #12702: Disable the creation of new papersResolvedBoone Gorges2020-04-24

Actions
Actions #1

Updated by Raymond Hoh almost 2 years ago

Actions #2

Updated by Raymond Hoh almost 2 years 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.

Actions #3

Updated by Boone Gorges almost 2 years ago

  • Status changed from Staged for Production Release to Resolved
Actions

Also available in: Atom PDF