Expand the permissions for cloud server template entities to include

  • View any published cloud server template entities
  • View own published cloud server template entities
  • View any unpublished cloud server template entities
  • View own unpublished cloud server template entities
  • Edit any cloud server template entities
  • Edit own cloud server template entities
  • Delete any cloud server template entities
  • Delete own cloud server template entities

Comments

baldwinlouie created an issue. See original summary.

baldwinlouie’s picture

Status: Active » Needs review
StatusFileSize
new14.13 KB

Attaching patch that adds the permissions described above. As part of this patch, I did a little refactoring to CloudContentListBuilder.php

Also, @yas, I didn't need to do any query altering. After we talked about it, I looked through the code and realized that Cloud server templates did not use Views to build the listing page :) It still used the old style ListBuilder class.

yas’s picture

@baldwinlouie,

Thank you for the patch! It looks good to me but could you please fix the coding standards warnings?

It looks 14 more than branch result according to https://www.drupal.org/pift-ci-job/1195068

@xiaohua-guan

What do you think?

baldwinlouie’s picture

@yas, working on the coding syntax now.

yas’s picture

Status: Needs review » Needs work
StatusFileSize
new361.11 KB
new64.91 KB
new177.83 KB

@baldwinlouie,

Thanks, actually I like these permission additions in this patch since an IT admin can provide Server Template to the user w/o giving Edit permission (Screenshot 1). Now the Server Templates can show the only Launch button for the operation. (Screenshot 2, Screenshot 3)

Screenshot 1
screenshot 1

Screenshot 2
screenshot 2

Screenshot 3
screenshot 3

yas’s picture

Issue summary: View changes
yas’s picture

Issue summary: View changes
baldwinlouie’s picture

StatusFileSize
new28.73 KB
baldwinlouie’s picture

Status: Needs work » Needs review
StatusFileSize
new26.84 KB

rerolling the patch.

xiaohua guan’s picture

Status: Needs review » Reviewed & tested by the community

@yas, @baldwinlouie

It looks OK to me. So I will change the status to RTBC.

yas’s picture

@baldwinlouie

Thank you for the updated patch. The code got even better quality now.

@xiaohua-guan

Thank you for your review. I'll merge the patch and close this issue as Fixed.

  • yas committed 39ad8e0 on 8.x-1.x authored by baldwinlouie
    Issue #3031735 by baldwinlouie, yas, Xiaohua Guan: Add more cloud server...
yas’s picture

Status: Reviewed & tested by the community » Fixed

@team,

I'll push a tag for 8.x-1.0-rc2 with this patch and create a release for RC2.

Thank you for your hard work!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.