Skip to content
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.

Fixed issue in security checker with namespace pattern and private name. #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
6 changes: 3 additions & 3 deletions src/com/google/cloud/backend/spi/SecurityChecker.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ public class SecurityChecker {

public static final String USERS_PROP_USERID = "userId";

public static final String USER_ID_PREFIX = "USER:";
public static final String USER_ID_PREFIX = "USER_";

public static final String USER_ID_FOR_ANONYMOUS = USER_ID_PREFIX + "<anonymous>";

public static final String NAMESPACE_DEFAULT = ""; // empty namespace

public static final String KIND_PREFIX_PRIVATE = "[private]";
public static final String KIND_PREFIX_PRIVATE = "private_";

public static final String KIND_PREFIX_PUBLIC = "[public]";
public static final String KIND_PREFIX_PUBLIC = "public_";
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

57

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

49


private static final SecurityChecker _instance = new SecurityChecker();

Expand Down