Closed waidyanatha closed 9 years ago
Database maintained data for indicate the permissions. Here is jagggery API for permissions[1], Permissions mapping to role, Here is role API[2].
Documentation need to update
[1] https://github.com/waidyanatha/strix-mom/blob/master/utils/apps/strix/api/api/role_permission.jag [2] https://github.com/waidyanatha/strix-mom/blob/master/utils/apps/strix/api/api/roles.jag
Does this mean the database tables and attributes for the fields we discussed are already implemented? For example: IMEI,Full Name,Grade,Age, Sex
On Mon, Apr 21, 2014 at 2:00 PM, madhuka notifications@github.com wrote:
Database maintained data for indicate the permissions. Here is jagggery API for permissions[1], Permissions mapping to role, Here is role API[2].
Documentation need to update
[1] https://github.com/waidyanatha/strix-mom/blob/master/utils/apps/strix/api/api/role_permission.jag [2] https://github.com/waidyanatha/strix-mom/blob/master/utils/apps/strix/api/api/roles.jag
— Reply to this email directly or view it on GitHubhttps://github.com/waidyanatha/strix-mom/issues/18#issuecomment-40918035 .
I see there is a folder called ../resources/Books/ and then Grade1, Grade 2, Unknown folders. I thought we agreed that all the books would be in a single folder but the database would maintain which roles have permissions to view the books.This was to optimize the hard drive space, instead of copying the book in to each grade which would exponentially increase the storage capacity. Do we still need those folders? If we do then what might be their purpose? we need to log that in the wiki.
Update the wiki with the functionality details here: https://github.com/waidyanatha/strix-mom/wiki/User-Management#roles-and-permissions
One Location for Files.
The current method with duplicating (or copying) the resources to every folder is resource intensive and can exhaust the storage capacity very quickly.
As discussed a database should be maintained to indicate the permissions (or Grades or folders) to wish resource is allocated. Therefore, need to create a database to manage the relationship.
The documentation on this should go here: https://github.com/waidyanatha/strix-mom/wiki/User-Management#resource-permissions