easywebhub / easyapp

More information and tutorials, please visit our website
https://easywebhub.com
0 stars 3 forks source link

Phân quyền cho website trong EasyWebBuilder #58

Open baotnq opened 7 years ago

baotnq commented 7 years ago

Mỗi website trong EasyWebBuilder có 2 quyền chính sau:

  1. User (hay admin): người nhập, thay đổi nôi dung của website
    • User chỉ được truy cập vào phần content của website
    • Thêm, thay đổi, xóa nội dung trong Content Form (lưu vào file .md)
    • Thay đổi nội dung trong file /metadata/*.json, nhưng không được phép XÓA, THÊM MỚI
    • Chỉ hiển thị các button cơ bản cho User như: Content, Add Content, ....
  2. Dev (developer): người phát triển website, thay đổi bổ sung giao diện, can thiệp vào html, css, js của website.
    • Toàn quyền quản trị website

Giải pháp xử lý hiện tại;

Giải pháp trong tương lai (đề xuất):

nemesisqp commented 7 years ago

tạm thời test bằng https://github.com/easywebhub/easyapp/blob/master/index.html#L89

baotnq commented 7 years ago

vẫn còn tab Raw với account User, cần ẩn luôn

nemesisqp commented 7 years ago

đã ẩn tab raw trong 3bb4fe2fd303f8712a6005c990e24a48882ad2f2

baotnq commented 7 years ago

@tungptvn lưu ý vấn đề này :

tạm thời test bằng https://github.com/easywebhub/easyapp/blob/master/index.html#L89