• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

IQSS / dataverse / #31077

03 Dec 2026 01:58PM UTC coverage: 56.745% (+0.03%) from 56.711%
#31077

push

github

web-flow
TDL/ActAsSuperuser Permission/ScopedSuperuser Role (#12676)

* new per/role for #10588

 Summary
   • Implemented the first stage of the Scoped Power Admin feature.
   • Added a new ScopedPowerAdmin permission and a PowerAdmin role alias.
   • Created isPowerUser functionality and integrated it into the setStorageDriver API call.

   Changes
   • Modified Permission.java to include the ScopedPowerAdmin permission.
   • Updated DataverseRole.java with a new POWER_ADMIN role constant.
   • Added isPowerUser(AuthenticatedUser user, DvObject dvo) to PermissionServiceBean.java to check for superuser status or the new
   permission.
   • Updated the setStorageDriver method in Dataverses.java to use permissionSvc.isPowerUser instead of a hardcoded isSuperuser
   check.
   • Added localized strings for the new permission and role in Bundle.properties and BuiltInRoles.properties.

* accept isPowerUser changes w/o full review

* merge fixes, cleanup, comment changes

* update permission service calls

* update docs, dashboard, cleanup, refactor, isPowerUserOnSomeDvObject call

* power user, release note, flyway to add role

* more docs

* tests

* update chichChildren to handle power assignment on child, update test

* add mocks to fix tests

* restore error responses, but FORBIDDEN for not power user

* fix admin role

* note what 'all' does

* rename flyway

* fix powerUserOnDataset checks

* include poweruser perm in indexing query, use & to check multiple perms at once.

* query fixes

* remove unused imports

* add helper method that checks user is authenticated, cleanup code

* separate unauth and forbidden

* add error code changes

* doc format fix

* add blank line

* fix tests

* unused imports

* fix li divider rendering

* initial permission/role name refactor.

* Bundle, xhtml, docs, flyway, etc. changes

* add a check for maindvobject api classes

* incorrect method names

* test fixes, role back superuser on move command

* adminIT test fix

* on... (continued)

166 of 297 new or added lines in 47 files covered. (55.89%)

38 existing lines in 15 files now uncovered.

54671 of 96345 relevant lines covered (56.75%)

0.57 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/edu/harvard/iq/dataverse/engine/command/impl/DeletePidCommand.java


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc