mirror of
https://github.com/penpot/penpot.git
synced 2025-02-12 18:18:24 -05:00
Merge pull request #5296 from penpot/palba-bugs-viewer-role
Bugs viewer role
This commit is contained in:
commit
8f72d8583e
2 changed files with 6 additions and 4 deletions
|
@ -1191,10 +1191,12 @@
|
|||
{:name name
|
||||
:team-id team-id})
|
||||
action-name (if in-project? :create-file :create-project)
|
||||
action (if in-project? file-created project-created)]
|
||||
action (if in-project? file-created project-created)
|
||||
can-edit? (dm/get-in state [:permissions :can-edit])]
|
||||
|
||||
(when can-edit?
|
||||
(->> (rp/cmd! action-name params)
|
||||
(rx/map action))))))
|
||||
(rx/map action)))))))
|
||||
|
||||
(defn open-selected-file
|
||||
[]
|
||||
|
|
|
@ -90,7 +90,7 @@
|
|||
|
||||
show-templates
|
||||
(and (contains? cf/flags :dashboard-templates-section)
|
||||
(not (:can-edit permissions)))]
|
||||
(:can-edit permissions))]
|
||||
|
||||
(mf/with-effect []
|
||||
(let [key1 (events/listen js/window "resize" on-resize)]
|
||||
|
|
Loading…
Add table
Reference in a new issue