mirror of https://github.com/zulip/zulip.git
Revert "settings_data: Check for invalid policy values."
This change doesn't have proper test coverage and also doesn't work as
intended, since due to the structure of the function, we'll only
complain about invalid policy values for members in unlikely situations.
This reverts commit c69a968ffe
.
This commit is contained in:
parent
c69a968ffe
commit
171703e480
|
@ -148,11 +148,6 @@ function user_has_permission(policy_value: number): boolean {
|
|||
return true;
|
||||
}
|
||||
|
||||
if (policy_value !== settings_config.common_policy_values.by_full_members.code) {
|
||||
throw new Error("Unexpected policy value.");
|
||||
}
|
||||
|
||||
/* We know the user is a member, but need to check if they are a "Full member". */
|
||||
const current_datetime = new Date();
|
||||
const person_date_joined = new Date(user_join_date);
|
||||
const user_join_days =
|
||||
|
|
Loading…
Reference in New Issue