Skip to content

Commit dab037c

Browse files
Merge pull request #2273 from IFRCGo/fix/set-new-user-as-non-guest
Fix/set new user as non guest
2 parents aec5121 + 46ad213 commit dab037c

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Generated by Django 4.2.15 on 2024-09-24 11:15
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
("api", "0213_merge_20240807_1001"),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name="profile",
15+
name="limit_access_to_guest",
16+
field=models.BooleanField(
17+
default=False,
18+
help_text="If this value is set to true, the user is treated as a guest user regardless of any other permissions they may have, thereby depriving them of all non-guest user permissions.",
19+
verbose_name="limit access to guest user permissions",
20+
),
21+
),
22+
]

api/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1859,7 +1859,7 @@ class OrgTypes(models.TextChoices):
18591859
" they may have, thereby depriving them of all non-guest user permissions."
18601860
),
18611861
verbose_name=_("limit access to guest user permissions"),
1862-
default=True,
1862+
default=False,
18631863
)
18641864

18651865
class Meta:

0 commit comments

Comments
 (0)