Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion api/src/org/labkey/api/action/PermissionCheckableAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import org.apache.logging.log4j.Logger;
import org.jetbrains.annotations.Nullable;
import org.labkey.api.data.Container;
import org.labkey.api.module.AllowedDuringUpgrade;
import org.labkey.api.module.IgnoresForbiddenProjectCheck;
import org.labkey.api.security.AdminConsoleAction;
import org.labkey.api.security.CSRF;
Expand Down Expand Up @@ -263,7 +264,8 @@ private void checkPermissionsAndTermsOfUse(Set<Role> contextualRoles, boolean is
{
checkActionPermissions(contextualRoles);

if (!getClass().isAnnotationPresent(IgnoresTermsOfUse.class))
// GH Issue 1930: terms enforcement on actions allowed during admin-only mode can loop with the maintenance redirect
if (!getClass().isAnnotationPresent(IgnoresTermsOfUse.class) && !getClass().isAnnotationPresent(AllowedDuringUpgrade.class))
verifyTermsOfUse(isSendBasic);
}

Expand Down
4 changes: 1 addition & 3 deletions api/src/org/labkey/api/module/AllowedDuringUpgrade.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@

/**
* Tag for the very small set of actions that users are allowed to access while the server is in the midst
* of an upgrade to the newly deployed module versions or initial install.
* User: adam
* Date: Nov 11, 2008
* of an upgrade to the newly deployed module versions or initial installation. Also implies {@link org.labkey.api.security.IgnoresTermsOfUse}.
*/
public @Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @Target(ElementType.TYPE)
@interface AllowedDuringUpgrade
Expand Down