#4 Check policy against tag name
Closed 4 years ago by lsedlar. Opened 4 years ago by lsedlar.
lsedlar/sidetag-koji-plugin name-policy  into  master

file modified
+1 -1
@@ -46,7 +46,7 @@ 

  

      # Policy is a very flexible mechanism, that can restrict for which

      # tags sidetags can be created, or which users can create sidetags etc.

-     assert_policy('sidetag', {'tag' : base_tag['id']})

+     assert_policy('sidetag', {'tag' : base_tag['name']})

  

      # event_id is just used a unique value that makes sidetags names unique

      event_id = _singleValue("SELECT get_event()")

The ID is unique, but tag name is much more human friendly.

This PR is not opened against correct version of the code. Closing.

Pull-Request has been closed by lsedlar

4 years ago
Metadata