Skip to content

Commit 6c3e941

Browse files
authored
Merge pull request #121 from fmasa/fix/visibility
Show career visibility switcher only for GMs
2 parents a17341f + 21f8d0a commit 6c3e941

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

common/src/commonMain/kotlin/cz/frantisekmasa/wfrp_master/common/compendium/career/CareerDetailScreen.kt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,12 @@ class CareerDetailScreen(
205205
TabPager(fullWidthTabs = true) {
206206
tab(strings.tabDetail) {
207207
Column {
208-
VisibilitySwitchBar(
209-
visible = career.isVisibleToPlayers,
210-
onChange = { screenModel.update(career.changeVisibility(it)) },
211-
)
208+
if (isGameMaster) {
209+
VisibilitySwitchBar(
210+
visible = career.isVisibleToPlayers,
211+
onChange = { screenModel.update(career.changeVisibility(it)) },
212+
)
213+
}
212214

213215
LazyColumn(contentPadding = PaddingValues(Spacing.bodyPadding)) {
214216
item {

0 commit comments

Comments
 (0)