12 lines
286 B
Python
12 lines
286 B
Python
from rest_framework import permissions
|
|
|
|
from tacticalrmm.permissions import _has_perm
|
|
|
|
|
|
class ManageScriptsPerms(permissions.BasePermission):
|
|
def has_permission(self, r, view):
|
|
if r.method == "GET":
|
|
return True
|
|
|
|
return _has_perm(r, "can_manage_scripts")
|