Learning management system (LMS) is an emerging paradigm of revolutionized educational environment in which software applications or web-based technologies is used to plan, implement, and assess specific learning and administrative processes of an educational institution. In essence, LMS adapts a service-oriented architecture where different entities can offer or request autonomous services such as to create/deliver content, monitor student participation, or assess performance. However, LMS encompasses several internal and external security risks and vulnerabilities to the private information stored in it. To overcome the security risks and vulnerabilities, a robust security model is a crucial requirement. Blockchain is a distributed hyperledger that utilizes different cryptographic and distributed techniques and algorithms. The benefit of using blockchain is a smart contract-based learning management system that can be secured, immutable and traceable. This paper presents a secure decentralized LMS based on a private blockchain network called blockchain based learning management system (BLMS). For ensuring security against internal attacks of the BLMS, the mechanism of fine grained permission (FGP) flow is applied that is responsible for maintaining the proof of permission access and revocation rights between academic and administrative layers. We also proposed solutions to ensure data security, privacy, access control and availability.