Uncategorized

Drupal 8 Module of the Week: Permissions by Term

What does the Permissions by Term Module do?

“Permissions by Term (PbT) lets you easily build access-restricted content areas on your websites. With it, you let certain users or groups of users see (or not see) specific pieces of content,” explains Peter. It restricts user access to specified Drupal nodes based on taxonomy terms. These permissions can be associated with individual user accounts and/or user roles. While Drupal has generally good, granular access permissions for the creation and editing of content, its fundamental assumption is also, more or less, that site visitors should all be able to see all published content on a site. A number of use cases come to mind where you’d want to be able to restrict access to some content at a more granular level than authenticated/anonymous (aka “logged-in/not-logged-in”):

  • A club or service site with premium- or member-only content.
  • School websites with content intended for teachers only and content aimed at individual classes within the school.
  • Company intranets with sensitive or proprietary content alongside non-restricted content.

permissions by term in action

Why is this important?

Permissions by Term is a lightweight alternative to Organic Groups or Group in that it only provides access control over content, but not things like subscribing to groups, and everything else that the two “group” alternatives offer. Furthermore, Permissions by Term restricts user access to specified Drupal nodes based on taxonomy terms–a core part of Drupal’s functionality. PbT lets you restrict content access while relying on very little contributed code. Group and Organic Groups come with their own entity types and additional overhead. PbT simply extends your existing content types by a single field, “It provides functionality to restrict access by taxonomy terms. This works out-of-the-box for Drupal site-builders and non-coders. Developers can build custom functionality on top of the Permissions by Term module.”

Peter explains his dilemma at the time he chose to create Permissions by Term, “I looked around for a content access solution that met my needs or one that I could adapt. That didn’t work out for me–hence, my module. Now that my module is running on more than 100 sites, what I really want is for this to be a solid, supported, community-proven code-base. I’d be very happy to accept more patches, create new sub-modules, or whathaveyou. With this project, we can share and build on our experiences together. The point is, we don’t need to reinvent stuff. We can work together as a community and build our websites more efficiently.”

“Please don’t hesitate to install the module, check it out! If you have feedback, want to share something, file an issue, work on something together, create an issue in the project’s issue queue or contact me and I’ll be very happy to answer you!”

Much like adding images and galleries, access-control is an area in Drupal that has seen a number of approaches and solutions over the years. For a blast from the past, here’s an older Drupal.org post trying to get an overview of this tricky landscape: Controlling Access to Content Overview. You’ll see it’s full of abandoned projects, varied use cases, and some extremely niche solutions.

 

 

Bitcoin Blogs 1
Bitcoin Blogs 2
Bitcoin Blogs 3
Bitcoin Blogs 4
Bitcoin Blogs 5
Bitcoin Blogs 6
Bitcoin Blogs 7
Bitcoin Blogs 8
Bitcoin Blogs 9
Bitcoin Blogs 10
Bitcoin Blogs 11
Bitcoin Blogs 12
Bitcoin Blogs 13
Bitcoin Blogs 14
Bitcoin Blogs 15
Bitcoin Blogs 16
Bitcoin Blogs 17
Bitcoin Blogs 18
Bitcoin Blogs 19
Bitcoin Blogs 20
Bitcoin Blogs 21
Bitcoin Blogs 22
Bitcoin Blogs 23
Bitcoin Blogs 24
Bitcoin Blogs 25
Bitcoin Blogs 26
Bitcoin Blogs 27
Bitcoin Blogs 28
Bitcoin Blogs 29
Bitcoin Blogs 30
Bitcoin Blogs 31
Bitcoin Blogs 32
Bitcoin Blogs 33
Bitcoin Blogs 34
Bitcoin Blogs 35
Bitcoin Blogs 36
Bitcoin Blogs 37
Bitcoin Blogs 38
Bitcoin Blogs 39
Bitcoin Blogs 40
Bitcoin Blogs 41
Bitcoin Blogs 42
Bitcoin Blogs 43
Bitcoin Blogs 44
Bitcoin Blogs 45
Bitcoin Blogs 46
Bitcoin Blogs 47
Bitcoin Blogs 48
Bitcoin Blogs 49
Bitcoin Blogs 50
Bitcoin Blogs 51
Bitcoin Blogs 52
Bitcoin Blogs 53
Bitcoin Blogs 54
Bitcoin Blogs 55
Bitcoin Blogs 56
Bitcoin Blogs 57
Bitcoin Blogs 58
Bitcoin Blogs 59
Bitcoin Blogs 60
Bitcoin Blogs 61
Bitcoin Blogs 62
Bitcoin Blogs 63
Bitcoin Blogs 64
Bitcoin Blogs 65
Bitcoin Blogs 66
Bitcoin Blogs 67
Bitcoin Blogs 68
Bitcoin Blogs 69
Bitcoin Blogs 70
Bitcoin Blogs 71
Bitcoin Blogs 72
Bitcoin Blogs 73
Bitcoin Blogs 74
Bitcoin Blogs 75
Bitcoin Blogs 76
Bitcoin Blogs 77
Bitcoin Blogs 78
Bitcoin Blogs 79
Bitcoin Blogs 80
Bitcoin Blogs 81
Bitcoin Blogs 82
Bitcoin Blogs 83
Bitcoin Blogs 84
Bitcoin Blogs 85
Bitcoin Blogs 86
Bitcoin Blogs 87
Bitcoin Blogs 88
Bitcoin Blogs 89
Bitcoin Blogs 90
Bitcoin Blogs 91
Bitcoin Blogs 92
Bitcoin Blogs 93
Bitcoin Blogs 94
Bitcoin Blogs 95
Bitcoin Blogs 96
Bitcoin Blogs 97
Bitcoin Blogs 98
Bitcoin Blogs 99
Bitcoin Blogs 100
Bitcoin Blogs 101
Bitcoin Blogs 102
Bitcoin Blogs 103
Bitcoin Blogs 104
Bitcoin Blogs 105
Bitcoin Blogs 106
Bitcoin Blogs 107
Bitcoin Blogs 108
Bitcoin Blogs 109
Bitcoin Blogs 110
Bitcoin Blogs 111
Bitcoin Blogs 112
Bitcoin Blogs 113
Bitcoin Blogs 114
Bitcoin Blogs 115
Bitcoin Blogs 116
Bitcoin Blogs 117
Bitcoin Blogs 118
Bitcoin Blogs 119
Bitcoin Blogs 120
Bitcoin Blogs 121
Bitcoin Blogs 122
Bitcoin Blogs 123
Bitcoin Blogs 124
Bitcoin Blogs 125
Bitcoin Blogs 126
Bitcoin Blogs 127
Bitcoin Blogs 128
Bitcoin Blogs 129
Bitcoin Blogs 130
Bitcoin Blogs 131
Bitcoin Blogs 132
Bitcoin Blogs 133
Bitcoin Blogs 134
Bitcoin Blogs 135
Bitcoin Blogs 136
Bitcoin Blogs 137
Bitcoin Blogs 138
Bitcoin Blogs 139
Bitcoin Blogs 140
Bitcoin Blogs 141
Bitcoin Blogs 142
Bitcoin Blogs 143
Bitcoin Blogs 144
Bitcoin Blogs 145
Bitcoin Blogs 146
Bitcoin Blogs 147
Bitcoin Blogs 148
Bitcoin Blogs 149
Bitcoin Blogs 150
Bitcoin Blogs 151
Bitcoin Blogs 152
Bitcoin Blogs 153
Bitcoin Blogs 154
Bitcoin Blogs 155
Bitcoin Blogs 156
Bitcoin Blogs 157
Bitcoin Blogs 158
Bitcoin Blogs 159
Bitcoin Blogs 160
Bitcoin Blogs 161
Bitcoin Blogs 162
Bitcoin Blogs 163
Bitcoin Blogs 164
Bitcoin Blogs 165
Bitcoin Blogs 166
Bitcoin Blogs 167
Bitcoin Blogs 168
Bitcoin Blogs 169
Bitcoin Blogs 170
Bitcoin Blogs 171
Bitcoin Blogs 172
Bitcoin Blogs 173
Bitcoin Blogs 174
Bitcoin Blogs 175
Bitcoin Blogs 176
Bitcoin Blogs 177
Bitcoin Blogs 178
Bitcoin Blogs 179
Bitcoin Blogs 180
Bitcoin Blogs 181
Bitcoin Blogs 182
Bitcoin Blogs 183
Bitcoin Blogs 184
Bitcoin Blogs 185
Bitcoin Blogs 186
Bitcoin Blogs 187
Bitcoin Blogs 188
Bitcoin Blogs 189
Bitcoin Blogs 190
Bitcoin Blogs 191
Bitcoin Blogs 192
Bitcoin Blogs 193
Bitcoin Blogs 194
Bitcoin Blogs 195
Bitcoin Blogs 196
Bitcoin Blogs 197
Bitcoin Blogs 198
Bitcoin Blogs 199
Bitcoin Blogs 200
Bitcoin Blogs 201
Bitcoin Blogs 202
Bitcoin Blogs 203
Bitcoin Blogs 204
Bitcoin Blogs 205
Bitcoin Blogs 206
Bitcoin Blogs 207
Bitcoin Blogs 208
Bitcoin Blogs 209
Bitcoin Blogs 210
Bitcoin Blogs 211
Bitcoin Blogs 212
Bitcoin Blogs 213
Bitcoin Blogs 214
Bitcoin Blogs 215
Bitcoin Blogs 216
Bitcoin Blogs 217
Bitcoin Blogs 218
Bitcoin Blogs 219
Bitcoin Blogs 220
Bitcoin Blogs 221
Bitcoin Blogs 222
Bitcoin Blogs 223
Bitcoin Blogs 224
Bitcoin Blogs 225
Bitcoin Blogs 226
Bitcoin Blogs 227
Bitcoin Blogs 228
Bitcoin Blogs 229
Bitcoin Blogs 230
Bitcoin Blogs 231
Bitcoin Blogs 232
Bitcoin Blogs 233
Bitcoin Blogs 234
Bitcoin Blogs 235
Bitcoin Blogs 236
Bitcoin Blogs 237
Bitcoin Blogs 238
Bitcoin Blogs 239
Bitcoin Blogs 240
Bitcoin Blogs 241
Bitcoin Blogs 242
Bitcoin Blogs 243
Bitcoin Blogs 244
Bitcoin Blogs 245
Bitcoin Blogs 246
Bitcoin Blogs 247
Bitcoin Blogs 248
Bitcoin Blogs 249
Bitcoin Blogs 250
Bitcoin Blogs 251
Bitcoin Blogs 252
Bitcoin Blogs 253
Bitcoin Blogs 254
Bitcoin Blogs 255
Bitcoin Blogs 256
Bitcoin Blogs 257
Bitcoin Blogs 258
Bitcoin Blogs 259
Bitcoin Blogs 260
Bitcoin Blogs 261
Bitcoin Blogs 262
Bitcoin Blogs 263
Bitcoin Blogs 264
Bitcoin Blogs 265
Bitcoin Blogs 266
Bitcoin Blogs 267
Bitcoin Blogs 268
Bitcoin Blogs 269
Bitcoin Blogs 270
Bitcoin Blogs 271
Bitcoin Blogs 272
Bitcoin Blogs 273
Bitcoin Blogs 274
Bitcoin Blogs 275
Bitcoin Blogs 276
Bitcoin Blogs 277
Bitcoin Blogs 278
Bitcoin Blogs 279
Bitcoin Blogs 280
Bitcoin Blogs 281
Bitcoin Blogs 282
Bitcoin Blogs 283
Bitcoin Blogs 284
Bitcoin Blogs 285
Bitcoin Blogs 286
Bitcoin Blogs 287
Bitcoin Blogs 288
Bitcoin Blogs 289
Bitcoin Blogs 290
Bitcoin Blogs 291
Bitcoin Blogs 292
Bitcoin Blogs 293
Bitcoin Blogs 294
Bitcoin Blogs 295
Bitcoin Blogs 296
Bitcoin Blogs 297
Bitcoin Blogs 298
Bitcoin Blogs 299
Bitcoin Blogs 300
Bitcoin Blogs 301
Bitcoin Blogs 302
Bitcoin Blogs 303
Bitcoin Blogs 304
Bitcoin Blogs 305
Bitcoin Blogs 306
Bitcoin Blogs 307
Bitcoin Blogs 308
Bitcoin Blogs 309
Bitcoin Blogs 310
Bitcoin Blogs 311
Bitcoin Blogs 312
Bitcoin Blogs 313
Bitcoin Blogs 314
Bitcoin Blogs 315
Bitcoin Blogs 316
Bitcoin Blogs 317
Bitcoin Blogs 318
Bitcoin Blogs 319
Bitcoin Blogs 320
Bitcoin Blogs 321
Bitcoin Blogs 322
Bitcoin Blogs 323
Bitcoin Blogs 324
Bitcoin Blogs 325
Bitcoin Blogs 326
Bitcoin Blogs 327
Bitcoin Blogs 328
Bitcoin Blogs 329
Bitcoin Blogs 330
Bitcoin Blogs 331
Bitcoin Blogs 332
Bitcoin Blogs 333
Bitcoin Blogs 334
Bitcoin Blogs 335
Bitcoin Blogs 336
Bitcoin Blogs 337
Bitcoin Blogs 338
Bitcoin Blogs 339
Bitcoin Blogs 340
Bitcoin Blogs 341
Bitcoin Blogs 342
Bitcoin Blogs 343
Bitcoin Blogs 344
Bitcoin Blogs 345
Bitcoin Blogs 346
Bitcoin Blogs 347
Bitcoin Blogs 348
Bitcoin Blogs 349
Bitcoin Blogs 350
Bitcoin Blogs 351
Bitcoin Blogs 352
Bitcoin Blogs 353
Bitcoin Blogs 354
Bitcoin Blogs 355
Bitcoin Blogs 356
Bitcoin Blogs 357
Bitcoin Blogs 358
Bitcoin Blogs 359
Bitcoin Blogs 360
Bitcoin Blogs 361
Bitcoin Blogs 362
Bitcoin Blogs 363
Bitcoin Blogs 364
Bitcoin Blogs 365
Bitcoin Blogs 366
Bitcoin Blogs 367
Bitcoin Blogs 368
Bitcoin Blogs 369
Bitcoin Blogs 370
Bitcoin Blogs 371
Bitcoin Blogs 372
Bitcoin Blogs 373
Bitcoin Blogs 374
Bitcoin Blogs 375
Bitcoin Blogs 376
Bitcoin Blogs 377
Bitcoin Blogs 378
Bitcoin Blogs 379
Bitcoin Blogs 380
Bitcoin Blogs 381
Bitcoin Blogs 382
Bitcoin Blogs 383
Bitcoin Blogs 384
Bitcoin Blogs 385
Bitcoin Blogs 386
Bitcoin Blogs 387
Bitcoin Blogs 388
Bitcoin Blogs 389
Bitcoin Blogs 390
Bitcoin Blogs 391
Bitcoin Blogs 392
Bitcoin Blogs 393
Bitcoin Blogs 394
Bitcoin Blogs 395
Bitcoin Blogs 396
Bitcoin Blogs 397
Bitcoin Blogs 398
Bitcoin Blogs 399
Bitcoin Blogs 400
Bitcoin Blogs 401
Bitcoin Blogs 402
Bitcoin Blogs 403
Bitcoin Blogs 404
Bitcoin Blogs 405
Bitcoin Blogs 406
Bitcoin Blogs 407
Bitcoin Blogs 408
Bitcoin Blogs 409
Bitcoin Blogs 410
Bitcoin Blogs 411
Bitcoin Blogs 412
Bitcoin Blogs 413
Bitcoin Blogs 414
Bitcoin Blogs 415
Bitcoin Blogs 416
Bitcoin Blogs 417
Bitcoin Blogs 418
Bitcoin Blogs 419
Bitcoin Blogs 420
Bitcoin Blogs 421
Bitcoin Blogs 422
Bitcoin Blogs 423
Bitcoin Blogs 424
Bitcoin Blogs 425
Bitcoin Blogs 426
Bitcoin Blogs 427
Bitcoin Blogs 428
Bitcoin Blogs 429
Bitcoin Blogs 430
Bitcoin Blogs 431
Bitcoin Blogs 432
Bitcoin Blogs 433
Bitcoin Blogs 434
Bitcoin Blogs 435
Bitcoin Blogs 436
Bitcoin Blogs 437
Bitcoin Blogs 438
Bitcoin Blogs 439
Bitcoin Blogs 440
Bitcoin Blogs 441
Bitcoin Blogs 442
Bitcoin Blogs 443
Bitcoin Blogs 444
Bitcoin Blogs 445
Bitcoin Blogs 446
Bitcoin Blogs 447
Bitcoin Blogs 448
Bitcoin Blogs 449
Bitcoin Blogs 450
Bitcoin Blogs 451
Bitcoin Blogs 452
Bitcoin Blogs 453
Bitcoin Blogs 454
Bitcoin Blogs 455
Bitcoin Blogs 456
Bitcoin Blogs 457
Bitcoin Blogs 458
Bitcoin Blogs 459
Bitcoin Blogs 460
Bitcoin Blogs 461
Bitcoin Blogs 462
Bitcoin Blogs 463
Bitcoin Blogs 464
Bitcoin Blogs 465
Bitcoin Blogs 466
Bitcoin Blogs 467
Bitcoin Blogs 468
Bitcoin Blogs 469
Bitcoin Blogs 470
Bitcoin Blogs 471
Bitcoin Blogs 472
Bitcoin Blogs 473
Bitcoin Blogs 474
Bitcoin Blogs 475
Bitcoin Blogs 476
Bitcoin Blogs 477
Bitcoin Blogs 478
Bitcoin Blogs 479
Bitcoin Blogs 480
Bitcoin Blogs 481
Bitcoin Blogs 482
Bitcoin Blogs 483
Bitcoin Blogs 484
Bitcoin Blogs 485
Bitcoin Blogs 486
Bitcoin Blogs 487
Bitcoin Blogs 488
Bitcoin Blogs 489
Bitcoin Blogs 490
Bitcoin Blogs 491
Bitcoin Blogs 492
Bitcoin Blogs 493
Bitcoin Blogs 494
Bitcoin Blogs 495
Bitcoin Blogs 496
Bitcoin Blogs 497
Bitcoin Blogs 498
Bitcoin Blogs 499
Bitcoin Blogs 500

Related Articles

Leave a Reply

Back to top button